query object to any GET action to filter, sort, or limit the documents returned from Firestore.
Query fields
| Field | Type | Description |
|---|---|---|
attribute | string | The document field to filter on. |
value | string | number | The value to compare against. |
operator | string | Firestore comparison operator (see supported operators below). |
orderBy | string | The field name to sort results by. |
order | "asc" | "desc" | Sort direction. |
limit | number | Maximum number of documents to return. Requires operator or order. |
Operators
operator accepts any valid Firestore query operator string:
==, !=, <, <=, >, >=, array-contains, in, not-in
The
operator string must be a valid Firestore query operator. Passing an unrecognized value will cause the Firestore query to fail at runtime.Examples
- Filter by field
- Sort results
- Param + Query
Filter documents where a field matches a specific value.This returns all documents where
status == "active".