limit method
Creates and returns a new Query that only returns the first matching documents.
This function returns a new (immutable) instance of the Query (rather than modify the existing instance) to impose the limit.
@param limit The maximum number of items to return. @return The created Query.
Implementation
external Query limit(int limit);