Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/firebase-firestore/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,10 @@ export class Query<T extends DocumentData = DocumentData> implements IQuery<T> {
return Query.fromNative(query);
}

isEqual(other: Query): boolean {
return this.native.equals(other?.native);
}

get native() {
return this._native;
}
Expand Down
4 changes: 4 additions & 0 deletions packages/firebase-firestore/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export interface IQuery<T extends DocumentData = DocumentData> {
startAt(fieldValues: IFieldValue[]): IQuery<T>;

where(fieldPath: keyof T | IFieldPath, opStr: WhereFilterOp, value: any): IQuery<T>;

isEqual(other: any): boolean;
}

export interface ICollectionReference<T extends DocumentData = DocumentData> {
Expand Down Expand Up @@ -322,6 +324,8 @@ export declare class Query<T extends DocumentData = DocumentData> implements IQu

where(fieldPath: FieldPath | keyof DocumentData, opStr: WhereFilterOp, value: any): Query;

isEqual(other: any): boolean;

readonly android: any;
readonly ios: any;
readonly native: any;
Expand Down
4 changes: 4 additions & 0 deletions packages/firebase-firestore/index.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,10 @@ export class Query<T extends DocumentData = DocumentData> implements IQuery<T> {
return Query.fromNative(query);
}

isEqual(other: Query): boolean {
return this.native.isEqual(other?.native);
}

get native() {
return this._native;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-firestore/platforms/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pod 'Firebase/Firestore','~>9.6'
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '9.6.0'