Answers for "add to subcollection firestore flutter"

0

add to subcollection firestore flutter

final databaseReference = Firestore.instance;
databaseReference.collection('main collection name').document( unique id).collection('string name').document().setData(); // your answer missing **.document()**  before setData
Posted by: Guest on May-26-2021

Browse Popular Code Answers by Language