Firebase Cloud Firestore : Invalid collection reference. Collection references must have an odd number of segments

前端 未结 5 1878
野的像风
野的像风 2020-12-01 18:02

I have the following code and getting an error :

Invalid collection reference. Collection references must have an odd number of segments

<

5条回答
  •  遥遥无期
    2020-12-01 18:31

    I've encountered this issue when I provided an entity_Id that contains the "/" character ( my value was N/A ) when i was trying to read documentReference (DocumentReference docRef2 = fireStoreDb.Collection("Ass").Document(ass.Tel.ToString()) .Collection("vehicules").Document(ve.Immatriculation);). Here, the value ve.Immatriculation equals to N/A, and that was the problem.

提交回复
热议问题