【问题标题】:Does Firestore auto generated id contains forward slash /Firestore 自动生成的 id 是否包含正斜杠 /
【发布时间】:2018-06-05 03:42:03
【问题描述】:

我正在为我的 url 路径段使用 Firestore 自动生成的 ID。它由正斜杠/分隔。

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

followerId 和 followId 都使用 Firestore 自动生成的 ID。 我的 url 路径段(使用 Angular)使用正斜杠分隔 url,例如 localhost:4200/follower/:id/followed/:id

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

【问题讨论】:

  • 不,它不会用斜线生成

标签: firebase google-cloud-firestore


【解决方案1】:

集合 ID 或文档 ID 不能包含斜杠。这不是一个有效的字符。

更多详情请查看documentation

【讨论】:

    猜你喜欢
    • 2018-11-13
    • 2013-08-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-10
    • 1970-01-01
    • 2013-11-14
    • 2012-06-28
    相关资源
    最近更新 更多