I want to know how can I create a collection in flutter that has a subcollection inside it. I know that to create a collection I use this code
firestore.collection('Collection').add({
'EmployeeID': '123',
'EmployerID': '234',
'ProposalID': '456,
}
but want to achieve something like this
firestore.collection('Collection').add({
'EmployeeID': '123',
'EmployerID': '234',
'ProposalID': '456,
'Chats':**THIS IS A SUB COLLECTION**
}
can anyone please help me?