如何通过文档快照updateTime查询firestore? [英] How can I query firestore by document snapshot updateTime?

查看:43
本文介绍了如何通过文档快照updateTime查询firestore?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过 updateTime 查询Firestore文档.可从文档快照中以 doc.updateTime 形式使用的字段,该字段可在where查询中使用?

Is it possible to query firestore documents by updateTime. The field that is available from the document snapshot as doc.updateTime and use it in a where query?

我正在使用node.js sdk.

I am using the node.js sdk.

推荐答案

据我所知,无法查询Firestore自动维护的元数据.如果您需要查询最近的更新日期,则需要在文档数据中添加一个具有该值的字段.

As far as I know there is no way to query on the metadata that Firestore automatically maintains. If you need to query the last update date, you will need to add a field with that value to the document's data.

这篇关于如何通过文档快照updateTime查询firestore?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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