我不知道如何使用 node.js firestore api 创建新的集合。有什么建议吗?
最佳答案
当您向其中添加/写入文档时,会自动创建集合。不需要(也不是 API)显式创建集合。
来自documentation :
Collections and documents are created implicitly in Cloud Firestore. Simply assign data to a document within a collection. If either the collection or document does not exist, Cloud Firestore creates it.
关于node.js - 如何使用 node.js 代码在 Firestore 中创建集合,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46623759/