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.
FieldValue.arrayUnion
Map
1 parent 6388c62 commit d1998aaCopy full SHA for d1998aa
packages/cloud_firestore/cloud_firestore_web/lib/src/interop/firestore.dart
@@ -367,8 +367,10 @@ class DocumentReference
367
}
368
369
Future<void> update(Map<firestore_interop.FieldPath, dynamic> data) {
370
- final alternatingFieldValues =
371
- data.keys.map((e) => [e, data[e]]).expand((e) => e).toList();
+ final alternatingFieldValues = data.keys
+ .map((e) => [jsify(e), jsify(data[e])])
372
+ .expand((e) => e)
373
+ .toList();
374
375
return handleThenable(callMethod(firestore_interop.updateDoc, 'apply', [
376
null,
0 commit comments