Skip to content

Commit 72b0b8b

Browse files
Add setDoc()
1 parent a4ff5fd commit 72b0b8b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/firestore/lite/test/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ describe('setDoc()', () => {
211211
return withTestDocAndInitialData({ foo: 1 }, async docRef => {
212212
await setDoc(
213213
docRef,
214-
{ foo: 2, bar: 2, baz: { foobar: 3 } },
214+
{ foo: 'ignored', bar: 2, baz: { foobar: 3 } },
215215
{ mergeFields: ['bar', new FieldPath('baz', 'foobar')] }
216216
);
217217
const docSnap = await getDoc(docRef);

packages/firestore/src/api/field_path.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export abstract class BaseFieldPath {
5959
this._internalPath = new InternalFieldPath(fieldNames);
6060
}
6161
}
62+
6263
/**
6364
* A FieldPath refers to a field in a document. The path may consist of a single
6465
* field name (referring to a top-level field in the document), or a list of

0 commit comments

Comments
 (0)