Relative Content

Tag Archive for flutterdartgoogle-cloud-firestore

Flutter set record with server timestamp as key

I need to add field to document when key is the Firebase/Firestore server timestamp. The only working solution i found till now is first create record with timestamp as value with FieldValue.serverTimestamp(), than read it from Firestore and than use received value for a key. This solution looks ugly and I don’t think it is correct one.