What is wrong with this query?
const db = firebase.firestore()
const query = db.doc(this.props.user.uid).collection(\'statements\').orderBy(\'uploadedOn\',
For others having this issue, make sure that no document reference has an empty string.
I had this issue when using a get
method with uid
input as below and forgot to check if uid is empty
private fun getFullRef(uid: String): CollectionReference {
return ref.document(uid).collection(FireContact.SUB_PATH)
}