I have a document with an array field in it.
How can I update the array?
In firebase functions, with typescript, I did something like this:
admin.firestore() .collection('friendships') .doc(caller.data["uid"]) .update({ friends: admin.firestore.FieldValue .arrayUnion({ friendDisplayName: snapshot.data["friendDisplayName"], friendUid: snapshot.ref }) }) I cannot find any alternative with Flutter.. how can I do?