Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save schmidt-sebastian/041cb4e83ebd12a361e551d96d754c8d to your computer and use it in GitHub Desktop.
Save schmidt-sebastian/041cb4e83ebd12a361e551d96d754c8d to your computer and use it in GitHub Desktop.
await firestore.doc('coll/doc').set({'date': FieldValue.serverTimestamp() });
const date : Date = firestore.doc('coll/doc').get().get('date');
await firestore.doc('coll/doc').set({'date': date });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment