Can I save data in a collection within a document?

I want to save data by creating a document within a collection which in turn is created inside a document in Firestore.
Is it possible using the Google Firebase / Cloud Firestore type data resource and a Create Record flow function in App Gyver?
Any Help will be appreciated.

What you’re trying to do seems like you want to create a sub-collection with a document within it.
That sub-collection is within a document.


Not sure how to create that. I was told this is no best practice. Better keep the structure flat.

1 Like

thanks Fred_Kuzyk. Basically I was trying to use the Collection Group queries to check for Comments on specific posts in my app. Plz refer to the link Collection Group Queries in Firestore - YouTube

Not familiar with this complexe schema.
Some insights here: Firestore - Google Firebase