元数据中是否有Firestore时间戳用于文档创建? [英] Is there a Firestore Timestamp in metadata for Document Creation?

查看:45
本文介绍了元数据中是否有Firestore时间戳用于文档创建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道Cloud Firestore是否在每个文档的元数据中标记了创建时的时间戳,如果可以的话,该元数据是否可用?

I am wondering if Cloud Firestore timestamps each document on creation in its metadata, and if so, is that metadata available?

我知道我可以出于任意原因在文档中创建自己的时间戳,但是我只对文档本身的创建时间感兴趣.

I know I can create my own timestamps inside a document for arbitrary reasons, but I'm only interested in when the document itself was created.

预先感谢

推荐答案

我想知道Firestore是否在创建元数据时在其元数据中标记时间戳

I am wondering if Firestore timestamps each document on creation in its metadata

不,不是.

我知道我可以在文档中创建自己的时间戳记

I know I can create my own timestamps inside a document

这是您应该继续使用的解决方案.将创建的时间戳记添加到每个文档中的字段中.

That's the solution you should go ahead with. Add the timestamp of the creation as a field within every document.

这篇关于元数据中是否有Firestore时间戳用于文档创建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆