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
Have feedback on this page?
Open GitHub IssueLast updated on Dec 4, 2025