where method

QueryBuilder<OBJ, OBJ, QWhere> where({
  1. bool distinct = false,
  2. Sort sort = Sort.asc,
})

Start building a query using the QueryBuilder.

You can use where clauses to only return distinct results. If you want to reverse the order, set sort to Sort.desc.

Implementation

QueryBuilder<OBJ, OBJ, QWhere> where({
  bool distinct = false,
  Sort sort = Sort.asc,
}) {
  final qb = QueryBuilderInternal(
    collection: this,
    whereDistinct: distinct,
    whereSort: sort,
  );
  return QueryBuilder(qb);
}