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