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/database > Query > isEqual

Query.isEqual() method

Returns whether or not the current and provided queries represent the same location, have the same query parameters, and are from the same instance of FirebaseApp.

Two Reference objects are equivalent if they represent the same location and are from the same instance of FirebaseApp.

Two Query objects are equivalent if they represent the same location, have the same query parameters, and are from the same instance of FirebaseApp. Equivalent queries share the same sort order, limits, and starting and ending points.

Signature:

isEqual(other: Query | null): boolean;

Parameters

Parameter Type Description
other Query | null The query to compare against.

Returns:

boolean

Whether or not the current and provided queries are equivalent.