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 > / > queryEqual

queryEqual() function

Returns true if the provided queries point to the same collection and apply the same constraints.

Signature:

export declare function queryEqual<T>(left: Query<T>, right: Query<T>): boolean;

Parameters

Parameter Type Description
left Query<T> A Query to compare.
right Query<T> A Query to compare.

Returns:

boolean

true if the references point to the same location in the same Firestore database.