buildQuery<R> method

  1. @override
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,
})
override

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

@override
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,
}) {
  return _isarCollection.buildQuery(
    whereClauses: whereClauses,
    whereDistinct: whereDistinct,
    whereSort: whereSort,
    filter: filter,
    sortBy: sortBy,
    distinctBy: distinctBy,
    offset: offset,
    limit: limit,
    property: property,
  );
}