在rxdb中为ref字段添加索引

时间:2019-02-01 16:51:47

标签: angular rxjs pouchdb

我想在架构中为引用字段添加索引:

  persons:                 {
    "type":  "array",
    "ref":   "person",
    "items": {
      "type":  "string",
      "index": true
    }
  }

当我尝试创建数据库时,出现此错误:

错误RxError:RxError: SchemaCheck:给定索引未在模式中定义 给定参数:{ 键:“ persons.items”}

如何为参考字段定义索引?

0 个答案:

没有答案
相关问题