QueryResult class
The result of sending a Query to a Collection.
final queryResult = await database.collection('Product').search();
```
Constructors
-
QueryResult({@required Collection collection, @required Query query, @required List<
Snapshot> snapshots, int count, Object vendorData}) -
QueryResult.withDetails({@required Collection collection, @required Query query, @required List<
QueryResultItem> items, int count, List<SuggestedQuery> suggestedQueries, Object vendorData})
Properties
- collection → Collection
-
Collection.
final
- count → int
-
Estimate of the total number of matches. Null if count was not requested.
final
- hashCode → int
-
The hash code for this object. [...]
read-only, override
-
items
→ List<
QueryResultItem> -
Return items. Unlike snapshots, this contains for additional data such
as snippets.
read-only
- query → Query
-
Query.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
-
snapshots
→ List<
Snapshot> -
Returned document snapshots.
read-only
-
suggestedQueries
→ List<
SuggestedQuery> -
Suggested queries.
final
- vendorData → Object
-
Optional vendor-specific data received from the database.
For example, a database adapter for Elasticsearch could expose JSON
response received from the REST API of Elasticsearch.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
override