endAt method

Query<T> endAt(
  1. Iterable<Object?> fieldValues
)

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.

fieldValues the field values to end this query at, in order of the query's order by.

Returns the created Query. Throws an ArgumentError in the cases described in startAt; see there for an example.

Implementation

Query<T> endAt(Iterable<Object?> fieldValues) {
  final Bound bound = _builder.boundFromFields(
    query,
    'endAt',
    fieldValues.toList(),
    inclusive: true,
  );
  return _withQuery(query.endAt(bound));
}