该文档不存在,它不会出现在查询或快照中吗?云防火墙 [英] This document does not exist, it will not appear in queries or snapshots? Cloud Firestore

查看:12
本文介绍了该文档不存在,它不会出现在查询或快照中吗?云防火墙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Cloud Firestore 还是很陌生(不是吗?),我已经使用 Node.js 中的管理 SDK 向我的数据库添加了一些数据.它显示在控制台上,但在文档下显示此文档不存在,它不会出现在查询或快照中."我不确定这是为什么?这是截图:

I'm quite new to Cloud Firestore (aren't we all?) and I've added some data to my db using the admin SDK in Node.js. It shows up on the console, but under the doc it says "This document does not exist, it will not appear in queries or snapshots." I'm not sure why this is? Here's a screenshot:

推荐答案

要实现的关键是,仅仅因为您在 root_collection > 创建了一个文档.root_doc >子集合>sub_doc 并不意味着在 root_collection > 处实际上有一个文档;root_doc.

The key thing to realize is that just because you create a document at root_collection > root_doc > sub_collection > sub_doc does not mean there is actually a document at root_collection > root_doc.

所以为了给你看下的文件... >事件 >2017 年 10 月 12 日 >Phase Data,控制台显示 10-12-2017 好像它是一个文档,但它让您知道该位置实际上没有文档.因此,如果您对 ... 下的文档进行查询... >事件10-12-2017不会出现.

So in order to show you the documents under ... > Events > 10-12-2017 > Phase Data, the console is showing 10-12-2017 as if it was a document, but it's letting you know that there is actually no document at that location. So if you do a query for the documents under ... > Events, 10-12-2017 will not show up.

这篇关于该文档不存在,它不会出现在查询或快照中吗?云防火墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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