Document references must have an even number of segments error on a collection reference

后端 未结 2 1214
南笙
南笙 2021-01-05 12:02

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 ho

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-05 12:29

    Your userId variable probably has a slash in it. Document ids can't have slashes, since they are interepreted as dividers between collections and documents when forming the "path" to a document.

    It's also possible that the string may be empty, which is invalid.

提交回复
热议问题