firestore Error: Argument "documentPath" must point to a document
You should chain the collection()
and doc()
methods for each segment of the firestore path, example:
firebase.firestore().collection('status').doc(uid)
You can chain these as far as your subcollections and subdocuments go.
firebase.firestore().collection('status').doc(uid).collection('messages').doc('messageId')