firebase - 索引未在 firebase 中定义
问题描述
这是我收到的错误:
"error" : "Index not defined, add \".indexOn\": \"release/date\", for path \"/north_america\", to the rules"
这是我的firebase数据的结构:
而且我添加的规则似乎不起作用,有什么帮助吗?
解决方案
尝试使用下一级的索引再次更新您的数据库规则。
"likes": {
"north_america": {
"$someid": {
"release": {
".indexOn": ["date"]
}
}
}
此外,您应该能够使用通配符,north_america
以便它可以在全球范围内使用。
推荐阅读
- javascript - 使用 gulp-eslint 的问题
- php - 如何使用 PDO 在数据库中插入数据?
- docker - 修剪后磁盘空间仍满
- reactjs - 无法从提供者到消费者获取数据
- scala - GraphStage 形状为 2 进 2 出
- java - 在 Ubuntu 18.04 上哪里安装 JDK .tar.gz 文件?
- cmake - 我们如何将 Bitbake 配方中的 ${BASEWORK} 目录传递给 CMAKE 以使用 CMAKE 中的查找库函数?
- html - 将 html 目标属性添加到 APEX 树链接
- scala - 如何修复错误:“org.jetbrains.jps.incremental.scala.remote.ServerException java.lang.StackOverflowError”
- php - Creating scheduled tasks in plesk result in error