I want to add an object to Google Cloud Firestore in my Flutter app like this:
I ha
@Laksh22 As far as I understand, you mean something like this:
Firestore.instance.runTransaction((transaction) async {
await transaction.set(Firestore.instance.collection("your_collection").document(), {
'reply' : {
'replyName': replyName,
'replyText': replyText,
'replyVotes': replyVotes,
}
});
just like the screenshot above.