如何基于该文档中的特定字段从集合中获取文档 [英] How to get a document from a collection based on a particular field in that document

查看:38
本文介绍了如何基于该文档中的特定字段从集合中获取文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

const docRef = firestore.collection("orders").document("")

如果字段值为Admno:"11.11.1111",我需要获取文档"147OiRKFYKA3WAo5d5mk"

I need to get the document "147OiRKFYKA3WAo5d5mk" if the field value is Admno:"11.11.1111"

这是我的数据库

谢谢您的帮助.

推荐答案

如果您刚开始使用Firestore,我强烈建议您阅读文档.

I strongly recommend reading the documentation if you're getting started with Firestore.

这篇关于如何基于该文档中的特定字段从集合中获取文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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