You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the firestore admin sdk, we can retrieve the timestamps (createTime, updateTime, readTime) of a document.
This can be helpful when we are using firestore for backend applications and don't want to manually create timestamps
When using the firestore admin sdk, we can retrieve the timestamps (createTime, updateTime, readTime) of a document.
This can be helpful when we are using firestore for backend applications and don't want to manually create timestamps
Documentation: https://firebase.google.com/docs/reference/functions/test/test.firestore.DocumentSnapshotOptions
Proposal - Include the types to the entity IF a property with the same name does not exist (user could override this value):
Usage:
For typescript, we can add a
Timestamped
wrapper to add some typing to the entity, so anyone could use it as:Does it make sense?
The text was updated successfully, but these errors were encountered: