【发布时间】:2018-07-20 13:44:45
【问题描述】:
使用 Bookshelf 教程和 Auth 包。
ListBooksCreatedBy 查询失败并出现以下错误:
could not list books: datastoredb: could not list books: rpc error: code = FailedPrecondition desc = no matching index found. recommended index is:
- kind: Book
properties:
- name: CreatedByID
- name: Title
但是,index.yaml 确实存在,并且与 app.yaml 位于同一目录中:
索引 YAML 内容:
indexes:
# This index enables filtering by "CreatedByID" and sort by "Title".
- kind: Book
properties:
- name: CreatedByID
direction: asc
- name: Title
direction: asc
为什么不导入索引?
在 Golang App Engine 代码中的什么地方导入了 index.yaml?
我搜索了src,什么也没找到。
【问题讨论】:
标签: google-app-engine go