本文介绍了通过Firestore安全规则引用Firebase实时数据库数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用实时数据库中的数据来允许用户访问Firestore数据库.是否可以从Firestore安全规则中引用实时数据库中的节点?
I would like to use data in the realtime database to allow user access in the firestore database. Is it possible to reference nodes in the realtime database from the firestore security rules?
推荐答案
在安全规则中,目前无法在这样的数据库产品之间进行转换.请随时为此功能提交请求.
It is currently not possible to cross between database products like this in security rules. Please feel free to file a feature request for this.
但是,您可以编写代码以在更改发生后处理数据库更改的Cloud Functions上运行,并在此处撤消或限制更改.
You can, however, write code to run on Cloud Functions that deals with database changes after the change has happened, and undo or restrict the change there.
这篇关于通过Firestore安全规则引用Firebase实时数据库数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!