当我访问Cloud Datastore Web管理时,"索引"部分下没有列出索引,我想明确定义一些索引以运行高级查询.我有一个yaml文件,看起来像:
indexes:
- kind: order
ancestor: no
properties:
- name: email
- name: name
- name: ownerId
- name: status
- name: updated_at
- name: created_at
direction: descRun Code Online (Sandbox Code Playgroud)
然后我运行以下命令来创建索引:
gcloud预览数据存储区创建索引indices.yaml
这是我得到的错误消息:
"AppInfoExternal类型的对象的意外属性'索引'"
有没有人遇到同样的问题?有任何想法吗?
问候,何塞
google-cloud-datastore google-cloud-platform google-cloud-sdk