@ Nonnull public Query limit ( int limit ) { QueryOptions newOptions = new QueryOptions ( options ) ; newOptions . limit = limit ; return new Query ( firestore , path , newOptions ) ; }
Creates and returns a new Query that s additionally limited to only return up to the specified number of documents .