Right now, to add a reply I have to do this:
final CollectionReference postsRef = FirebaseFirestore.instance
.collection('Media')
.doc("<docNumber>")
.collection("Posts")
.doc(document)
.collection("Replies");
I want there to be a way that I could dynamically add replies collection to a document. Right now, the only way for me to do that is if I do .doc().col().doc().col().doc().col()... etc.
As you see, I would rather only have to give a single path instead of having to add many nested collections for adding the information. Is there a way I can just provide a string path?