I'm from following issue.
How to manage add and update data in Firebase
Initially I can make data in firestore following code.
However I would like to add car2 inside of cars after car1.
I have no idea of it.
_firestore.collection('members').document(${loginUser.uid}).setData({
'cars': {
'car1': {
'name': name,
'img_url': 'https://www.xxx.xxx/xxx.png',
'details': {
'type': carType,
}
}
}
Please give me advice.