MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / limit

Method limit

packages/filter/src/query.ts:553–557  ·  view source on GitHub ↗

* Set `limit` * @param limit - Maximum number of records to be returned

(limit: number)

Source from the content-addressed store, hash-verified

551 * @param limit - Maximum number of records to be returned
552 */
553 limit(limit: number): this {
554 assert(limit >= 1, `Limit ${limit} must a positive number`);
555 this.filter.limit = limit;
556 return this;
557 }
558
559 /**
560 * Set `offset`

Callers 4

filterBuilderHelperFunction · 0.95
index.unit.tsFile · 0.80
query.unit.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

filterBuilderHelperFunction · 0.76