<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [Query](./database.query.md) &gt; [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.

