我有一种client
是由实体与含有Key
是否有可能在包含键
列表属性psets
的列表(value)属性运行'的祖先过滤器/查询使用JSON API psets
这将表示为:
psets = { listValue: [ {keyValue: { path: [...]} },{keyValue: { path: [...]} },... ]}
的键值来制成的path = [{ kind: 'project', name: 'projectn' }]
我试图运行“客户”上的“祖先”查询使用
SELECT * from client where psets HAS ANCESTOR KEY(project, 'project1')
该查询返回了一个错误:unsupported property
什么是不支持?
如何在键列表上运行'HAS ANCESTOR'过滤器?
根据该DataStore Documentation(运营商和比较)
A condition can also test whether one entity has another entity as an ancestor, using the HAS ANCESTOR or HAS DESCENDANT operators. These operators test ancestor relationships between keys. They can operate on __key__, but they can also operate on a key-valued property. For HAS ANCESTOR, the right operand cannot be a property
(重点煤矿)
这看起来像一个文档错误。我正在努力解决这个问题,希望能提供更好的错误信息。 –