How is createTime and updateTime set? #105
-
I'm trying to understand how the When I use the However - when I go to Firestore, there are no such fields in the document. Example:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Firelord doesnt set them, in fact this is the first time i see something like these They seem to be meta data, that is why you cant find them in data() I think they are hidden API of official SDK because they cant be found in official documentation https://firebase.google.com/docs/reference/node/firebase.firestore.DocumentSnapshot |
Beta Was this translation helpful? Give feedback.
-
update: I found them they can only be accessed from admin sdk, they are meta data, not part of your data |
Beta Was this translation helpful? Give feedback.
-
This is amazing - never knew this existed. Thanks for looking into this! |
Beta Was this translation helpful? Give feedback.
update: I found them
https://cloud.google.com/nodejs/docs/reference/firestore/latest/firestore/documentsnapshot#_google_cloud_firestore_DocumentSnapshot_createTime_member
they can only be accessed from admin sdk, they are meta data, not part of your data