skip to Main Content

Time Stamp as key in firebase firestore document

I want to save data on Firebase Firestore where the key will be timestamp: await FirebaseFirestore.instance .collection("users") .doc(uid) .collection('data') .doc(device.id) .update({ DateTime.now().toString(): "${result['humidity']}_${result['tempInC']}" }); } What can be the possible reasons for this nested hierarchy as shown in the image:…

VIEW QUESTION
Back To Top
Search