Query class

Represents a Query over the data at a particular location.

Can construct refined Query objects by adding filters and ordering.

Implementers

Properties

firestore FirebaseFirestore
The FirebaseFirestore instance of this query.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
parameters Map<String, dynamic>
Exposes the parameters on the query delegate. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

endAt(List values) Query
Takes a list of values, creates and returns a new Query that ends at the provided fields relative to the order of the query. [...]
endAtDocument(DocumentSnapshot documentSnapshot) Query
Creates and returns a new Query that ends at the provided document (inclusive). The end position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of this query. [...]
endBefore(List values) Query
Takes a list of values, creates and returns a new Query that ends before the provided fields relative to the order of the query. [...]
endBeforeDocument(DocumentSnapshot documentSnapshot) Query
Creates and returns a new Query that ends before the provided document snapshot (exclusive). The end position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of this query. [...]
get([GetOptions options]) Future<QuerySnapshot>
Fetch the documents for this query. [...]
limit(int limit) Query
Creates and returns a new Query that's additionally limited to only return up to the specified number of documents.
limitToLast(int limit) Query
Creates and returns a new Query that only returns the last matching documents. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
orderBy(dynamic field, {bool descending = false}) Query
Creates and returns a new Query that's additionally sorted by the specified field. The field may be a String representing a single field name or a FieldPath. [...]
snapshots({bool includeMetadataChanges = false}) Stream<QuerySnapshot>
Notifies of query results at this location.
startAfter(List values) Query
Takes a list of values, creates and returns a new Query that starts after the provided fields relative to the order of the query. [...]
startAfterDocument(DocumentSnapshot documentSnapshot) Query
Creates and returns a new Query that starts after the provided document (exclusive). The starting position is relative to the order of the query. The documentSnapshot must contain all of the fields provided in the orderBy of this query. [...]
startAt(List values) Query
Takes a list of values, creates and returns a new Query that starts at the provided fields relative to the order of the query. [...]
startAtDocument(DocumentSnapshot documentSnapshot) Query
Creates and returns a new Query that starts at the provided document (inclusive). The starting position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of this query. [...]
toString() String
A string representation of this object. [...]
inherited
where(dynamic field, {dynamic isEqualTo, dynamic isNotEqualTo, dynamic isLessThan, dynamic isLessThanOrEqualTo, dynamic isGreaterThan, dynamic isGreaterThanOrEqualTo, dynamic arrayContains, List arrayContainsAny, List whereIn, List whereNotIn, bool isNull}) Query
Creates and returns a new Query with additional filter on specified field. field refers to a field in a document. [...]

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited