get method

Creates and returns a new Query that ends at the provided fields relative to the order of the query. The order of the field values must match the order of the order by clauses of the query.

@param fieldValues The field values to end this query at, in order of the query's order by. @return The created Query. Executes the query and returns the results as a QuerySnapshot.

@return A Promise that will be resolved with the results of the Query.

Implementation

// TODO: Is this possible in dart?
// endAt(...fieldValues: any[]): Query<AppModelType, DbModelType>;

/// Executes the query and returns the results as a `QuerySnapshot`.
///
/// @return A Promise that will be resolved with the results of the Query.
external JSPromise<QuerySnapshot> get();