简体   繁体   English

是否可以使用 angularfire2 在 Firestore 中创建顶级 collections?

[英]Is it possible to create a top-level collections in Firestore with angularfire2?

Reading the Angularfire GitHub page on collections doesn't reveal much about my how to create a top-level collection.阅读 collections 上的Angularfire GitHub页面并没有透露太多关于我如何创建顶级集合的信息。

Is it possible to create a top-level collection through the SDK?是否可以通过 SDK 创建顶级集合?

Collections are created automatically when you write a document to them. Collections 是在您向它们写入文档时自动创建的。 This applies equally to top-level collections or nested collections.这同样适用于顶级 collections 或嵌套 collections。

So if you follow the instructions in adding documentation to a collection , you'll be creating a collection.因此,如果您按照说明将文档添加到集合,您将创建一个集合。

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

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