limit method

Query limit(
  1. int limit
)

Implementation

Query limit(int limit) {
  var newOptions = QueryOption(
    limit: limit,
    offset: _queryOptions!.offset,
    projection: _queryOptions!.projection,
  );

  return Query(
    core: _core,
    coll: _coll,
    fieldFilters: _fieldFilters,
    fieldOrders: _fieldOrders,
    queryOptions: newOptions,
  );
}