rowy icon indicating copy to clipboard operation
rowy copied to clipboard

'Add Row' button in Collection Group table

Open Twansparant opened this issue 4 years ago • 2 comments

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

Twansparant avatar Jan 06 '21 13:01 Twansparant

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.

notsidney avatar Jan 07 '21 06:01 notsidney

Ok thanks for your elaborate answer, appreciate it!

Twansparant avatar Jan 07 '21 17:01 Twansparant