大佬教程收集整理的这篇文章主要介绍了Firebase 删除用户数据扩展是否能够删除已删除用户子集合中的所有文档?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我想尝试使用 Firebase 扩展删除用户数据。
在 Firestore 中说我有这样的路径
users/{uID}/inBox/{messagEID}
还有
users/{uID}/posts/{postID}
我的问题是......
Firebase 扩展删除用户数据是否能够删除所有用户消息文档,以及所有用户在 Firestore 中发布的文档?
从 here 中的文档来看,它似乎只能删除 Firestore 的根主集合中具有相同 uID 的文档。我说的对吗?
来自您链接的同一文档:
配置参数:
...
Cloud Firestore 删除模式:(仅当您使用 Cloud Firestore 路径参数时适用。)您想如何删除 Cloud Firestore 文档?要同时删除子集合中的文档,请将此参数设置为 recursive
。
安装扩展程序时,您应该会看到此 parameter 的提示并回答 recursive
:
- param: FIRESTORE_deletE_MODE
label: Cloud Firestore delete mode
description: >-
(Only applicable if you use the `Cloud Firestore paths` parameter.) How do
you want to delete Cloud Firestore documents? To also delete documents in
subcollections,set this parameter to `recursive`.
type: SELEct
options:
- label: Recursive
value: recursive
- label: Shallow
value: shallow
default: shallow
required: true
以上是大佬教程为你收集整理的Firebase 删除用户数据扩展是否能够删除已删除用户子集合中的所有文档?全部内容,希望文章能够帮你解决Firebase 删除用户数据扩展是否能够删除已删除用户子集合中的所有文档?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。