We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23a2424 + a722b11 commit 164920aCopy full SHA for 164920a
src/collection.ts
@@ -76,6 +76,15 @@ export class GeoFireCollectionRef<T> {
76
setDoc(id: string, data: any) {
77
return this.ref.doc(id).set(data);
78
}
79
+ /**
80
+ * Create or update a document in the collection based on the document ID merging fields
81
+ * @param {string} id
82
+ * @param {any} data
83
+ * @returns {Promise<void>}
84
+ */
85
+ setDocMerge(id: string, data: any) {
86
+ return this.ref.doc(id).set(data, { merge: true });
87
+ }
88
/**
89
* Create or update a document with GeoFirePoint data
90
* @param {string} id document id
0 commit comments