voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
31 lines (17 loc) • 1.16 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [Query](./database.query.md) > [isEqual](./database.query.isequal.md)
## 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.
<b>Signature:</b>
```typescript
isEqual(other: Query | null): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| other | [Query](./database.query.md) \| null | The query to compare against. |
<b>Returns:</b>
boolean
Whether or not the current and provided queries are equivalent.