【发布时间】:2016-12-13 00:09:38
【问题描述】:
我在 Google Cloud Datastore 中有以下数据模型:
Parent:
- name
Child:
- ancestor: Parent
- name
我有一个Parent 键的列表。如何查询从Parent 键列表降序的所有Child 实体?
我试过了
SELECT * FROM Child WHERE __key__ HAS ANCESTOR Key(Parent, 'abc'), Key(Parent, 'dfe')
和
SELECT * FROM Child WHERE __key__ HAS ANCESTOR [Key(Parent, 'abc'), Key(Parent, 'dfe')]
select 语句都不起作用。
【问题讨论】:
标签: google-cloud-datastore gql