UNPKG

voluptasmollitia

Version:
30 lines (17 loc) 1.04 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [lite](./firestore_lite.md) &gt; [query](./firestore_lite.query.md) ## query() function Creates a new immutable instance of `Query` that is extended to also include additional query constraints. <b>Signature:</b> ```typescript export declare function query<T>(query: Query<T>, ...queryConstraints: QueryConstraint[]): Query<T>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | query | [Query](./firestore_lite.query.md)<!-- -->&lt;T&gt; | The Query instance to use as a base for the new constraints. | | queryConstraints | [QueryConstraint](./firestore_lite.queryconstraint.md)<!-- -->\[\] | The list of <code>QueryConstraint</code>s to apply. | <b>Returns:</b> [Query](./firestore_lite.query.md)<!-- -->&lt;T&gt; ## Exceptions if any of the provided query constraints cannot be combined with the existing or new constraints.