File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ export interface GeoQueryOptions {
1313}
1414const defaultOpts : GeoQueryOptions = { units : 'km' } ;
1515
16+ export interface SetOptions {
17+ merge ?: boolean ;
18+ mergeFields ?: ( string | FieldPath ) [ ] ;
19+ }
20+
1621export interface QueryMetadata {
1722 bearing : number ;
1823 distance : number ;
@@ -72,10 +77,11 @@ export class GeoFireCollectionRef {
7277 * Create or update a document in the collection based on the document ID
7378 * @param {string } id
7479 * @param {any } data
80+ * @param {SetOptions } options
7581 * @returns {Promise<void> }
7682 */
77- setDoc ( id : string , data : any ) {
78- return this . ref . doc ( id ) . set ( data ) ;
83+ setDoc ( id : string , data : any , options ?: SetOptions ) {
84+ return this . ref . doc ( id ) . set ( data , options ) ;
7985 }
8086 /**
8187 * Create or update a document with GeoFirePoint data
You can’t perform that action at this time.
0 commit comments