Note: You are viewing documentation for version v0 of Node.js. View the latest version.
Node.js - collection.query()
Begins a new query on a Collection.
import { collection } from '@nitric/sdk'
const profiles = collection('profiles').for('reading')
const profileQuery = profiles.query()
See also
- Adding filters: query().where()
- Limiting the results: query().limit()
- Streaming results: query().stream()
- Fetching results: query().fetch()