Does Firestore auto generated id contains forward

2019-08-06 07:11发布

I am using Firestore auto generated ID for my url path segment. It is separated by forward slash /.

For example, localhost:4200/follower/followerId/followed/followedId.

Both followerId and followedId are using Firestore auto generated id. My url path segment (using Angular) which separates url using forward slash such that localhost:4200/follower/:id/followed/:id

Therefore, does Firestore auto generated id contains forward slash?

1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-08-06 08:14

It's not possible for a collection ID or document ID to contain a slash. It's not a valid character.

Please see the documentation for more details.

查看更多
登录 后发表回答