Creates a limit query object. It's used to paginate queries.
import { limit, query, order, startAfter, collection } from 'typesaurus' type Contact = { name: string; year: number } const contacts = collection<Contact>('contacts') query(contacts, [ order('year', 'asc', [startAfter(2000)]), limit(2) ])
The limit value
The limit object
Generated using TypeDoc
Creates a limit query object. It's used to paginate queries.
import { limit, query, order, startAfter, collection } from 'typesaurus' type Contact = { name: string; year: number } const contacts = collection<Contact>('contacts') query(contacts, [ order('year', 'asc', [startAfter(2000)]), limit(2) ])