How to create empty collection in Firestore Swift

前端 未结 2 1627
萌比男神i
萌比男神i 2020-12-20 23:53

How can I create an empty collection in Firestore (Swift)? i want to do that when I create DB users after I registrate them, because on my main screen it tries to fetch from

2条回答
  •  攒了一身酷
    2020-12-21 00:32

    Collections are automatically created when you write a document to them. There is no way to create a collection without a document in it.

提交回复
热议问题