buildQuery<R> abstract method

  1. @experimental
Query<R> buildQuery<R>({
  1. List<WhereClause> whereClauses = const [],
  2. bool whereDistinct = false,
  3. Sort whereSort = Sort.asc,
  4. FilterOperation? filter,
  5. List<SortProperty> sortBy = const [],
  6. List<DistinctProperty> distinctBy = const [],
  7. int? offset,
  8. int? limit,
  9. String? property,
})

Build a query dynamically for example to build a custom query language.

It is highly discouraged to use this method. Only in very special cases should it be used. If you open an issue please always mention that you used this method.

The type argument R needs to be equal to OBJ if no property is specified. Otherwise it should be the type of the property.

Implementation

@experimental
Query<R> buildQuery<R>({
  List<WhereClause> whereClauses = const [],
  bool whereDistinct = false,
  Sort whereSort = Sort.asc,
  FilterOperation? filter,
  List<SortProperty> sortBy = const [],
  List<DistinctProperty> distinctBy = const [],
  int? offset,
  int? limit,
  String? property,
});