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.