Node.js - collection.query.limit()
Limit the number of results returned by a query.
import { collection } from '@nitric/sdk'const profiles = collection('profiles').for('reading')const profileQuery = profiles.query().limit(10)
Parameters
- Name
limit
- Required
- Required
- Type
- number
- Description
The limit to apply to the query.
See also
Last updated on Dec 19, 2024