I'm getting the rather simple error:
Document references must have an even number of segments.
I'm aware of what it is telling me and how to fix it, however it is giving me this error on a collection reference.
CollectionReference collectionReference = getFirebaseInstance()
.collection(Constants.USERS)
.document(userId)
.collection(Constants.CONTACTS);
In my database the path is (COLLECTION) < DOCUMENTS > (COLLECTION) < DOCUMENTS > I'm trying to get all contacts for a user at users/{id}/contacts but it just throws this error, any ideas?
getFirebaseInstance is a method I've created to always get the current
FirebaseFirestore.getInstance();