Firestore的createTime和updateTime字段是否将停用?使用疑问咨询
Will
createTimeandupdateTimein DocumentSnapshot be deprecated?
Absolutely not. These two fields are core metadata for every Firestore document—they’re fundamental for tracking when a document was first created and last modified. Google has never announced plans to deprecate or remove them, and they’re widely used in countless applications for time-based logic, auditing, and syncing. You can rely on them being a stable part of Firestore’s API.Why aren’t these fields documented in Firebase’s DocumentSnapshot docs, even though they’re in Google Cloud’s docs?
This is just a documentation sync quirk. Firestore is a shared service between Google Cloud and Firebase, and sometimes the Firebase documentation lags behind the Google Cloud docs when it comes to metadata fields. Rest assured, these fields are fully supported in the Firebase Node.js SDK—you’re not using some hidden or experimental feature. They won’t be removed as part of Firestore adjustments; the docs just need a little time to catch up.
内容的提问来源于stack exchange,提问作者MiguelSlv

