The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > lite > 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 QueryConstraints to apply.

Returns:

Query<T>

Exceptions

if any of the provided query constraints cannot be combined with the existing or new constraints.