How can I get the document reference if I know the path in Firebase. I have a folder named ‘chats’, which has a document (random), which again has a collection called ‘messages’. So how can I get the collection reference of ‘messages’ and document reference of any document in chats.
Second question I would like to clarify, what is the difference between the two statements below:
sessionRef.collection(‘executions’).doc(‘default’)
sessionRef.collection(‘executions’).doc()
I am tyring to get the document reference from knowing the path in firebase