Firestore自动生成的ID是否包含正斜杠/ [英] Does Firestore auto generated id contains forward slash /

查看:45
本文介绍了Firestore自动生成的ID是否包含正斜杠/的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Firestore自动生成的ID用于我的网址路径段.它由正斜杠/分隔.

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

例如,localhost:4200/follower/followerId/followed/followedId.

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

followerId和followedId都使用Firestore自动生成的ID.我的网址路径段(使用Angular),使用正斜杠分隔网址,以便localhost:4200/follower/:id/followed/:id

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

因此,Firestore自动生成的ID是否包含正斜杠?

推荐答案

集合ID或文档ID不能包含斜线.这不是有效字符.

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.

这篇关于Firestore自动生成的ID是否包含正斜杠/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆