You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Firestore的createTime和updateTime字段是否将停用?使用疑问咨询

Answers to Your Firestore Metadata Field Questions
  • Will createTime and updateTime in 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 04:04:52