I'm fairly new to firebase and I'm trying to get the path to one of my subcollections in order to install a firebase extension.
This is how my JSON looks like
The issue is I'm trying to get the subcollection "comments" under each "post" document as required by the extension
I'm aware I can use collection groups and simply give it "comments" however in my case the path is required by the extension
I tried doing post/comments
however it would detect that the path is incorrect and would throw out an error
I tried post/${postId}/comments
however that simply wouldn't work
I know the extension does work because something like /post/c9902c40-6e63-11ed-b700-2d9d4e8231b7/comments
does work for that one branch