GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
554 stars 79 forks source link

FirstoreDocument cannot contain collections #97

Closed WolfgangSenff closed 3 years ago

WolfgangSenff commented 3 years ago

While working with Firestore, I managed to create a Document in the console that contains a collection of other documents. This type is currently missing from the list and it would be very useful for our users. I'll work around it for now by adding the same document to the previous collection and find a better way to structure the initial collection name, but we'll need to implement it, since (apparently) this is a valid setup in Firestore.

WolfgangSenff commented 3 years ago

This is actually not an issue, as it turns out. Need to add a comment to the Wiki that you have to go to the collection even if it's nested by utilizing the entire path to whatever collection you want. If it's nested, you have to go through the nested structure directly the first time you call to create the FirestoreCollection - which is completely fine.

DanielVZ96 commented 3 years ago

@WolfgangSenff I'm sorry but can you give some example on how you'd query nested collections?

BearDooks commented 3 years ago

@DanielVZ96 I am going to move this question over to the discussions section. I just saw that you had posted here, but I think it is better suited for there.