📅  最后修改于: 2022-03-11 14:55:37.877000             🧑  作者: Mango
final databaseReference = Firestore.instance;
databaseReference.collection('main collection name').document( unique id).collection('string name').document().setData(); // your answer missing **.document()** before setData