Home > @firebase/firestore > / > query
query() function
Creates a new immutable instance of Query
that is extended to also include additional query constraints.
Signature:
export declare function query<T>(query: Query<T>, ...queryConstraints: QueryConstraint[]): Query<T>;
Parameters
Parameter | Type | Description |
---|---|---|
query | Query<T> | The Query instance to use as a base for the new constraints. |
queryConstraints | QueryConstraint[] | The list of QueryConstraint s to apply. |
Returns:
Query<T>
Exceptions
if any of the provided query constraints cannot be combined with the existing or new constraints.