rowy
rowy copied to clipboard
'Add Row' button in Collection Group table
Hi there,
I'm just figuring everything out about Firetable (and also Cloud Firestore), but I'm loving it so far!
So maybe this is a dumb question, but do I understand correctly that you will only have the Add Row button when you have connected your table to a Primary Collection?
Because when I try to connect the table to a Collection Group inside a document, I only see the Add Column button? Is this intended behavior and if so why exactly?
Thanks for your time! Cheers, Toine
Hi Toine, a “collection group”-linked table uses a collection group query—you can learn more about those here. So it returns documents with the same collection name. This allows us to query subcollections such as restaurant/<docID>/reviews.
Having the Add Row button here would require additional work, since the user would need to specify which document’s subcollection to add a new document. This has not been implemented yet.
Ok thanks for your elaborate answer, appreciate it!