MCPcopy Create free account
hub / github.com/NativeScript/firebase / issue_139

Method issue_139

apps/demo/src/plugin-demos/firebase-firestore.ts:155–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 }
154
155 async issue_139() {
156 const data = {
157 a: {
158 b: FieldValue.serverTimestamp(),
159 },
160 };
161
162 data[new FieldPath(['test', '123']) as any] = 'thing';
163 firebase()
164 .firestore()
165 .doc('test/1234')
166 .update(data)
167 .then((done) => {
168 console.log('done', 'issue 139');
169 })
170 .catch((e) => {
171 console.error('done', 'issue 139', e);
172 });
173 }
174
175 async field_path() {
176 const fp = new FieldPath(['test', '123']);

Callers 1

testItMethod · 0.95

Calls 8

firebaseFunction · 0.90
updateMethod · 0.65
docMethod · 0.65
firestoreMethod · 0.65
logMethod · 0.65
serverTimestampMethod · 0.45
thenMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected