@ Nonnull public Query endAt ( Object ... fieldValues ) { QueryOptions newOptions = new QueryOptions ( options ) ; newOptions . endCursor = createCursor ( newOptions . fieldOrders , fieldValues , false ) ; return new Query ( firestore , path , newOptions ) ; }
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 .