简体   繁体   English

如何删除 Firestore 文档中的所有字段但保留空白文档?

[英]How to delete ALL fields in Firestore document but keep the blank document?

As the title shows, I'm searching a direct command to delete all the fields of a document without deleting the document itself.如标题所示,我正在搜索直接命令以删除文档的所有字段而不删除文档本身。

Are you looking for docRef.set({}) ?您在寻找docRef.set({})吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM