我有一種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
(重點煤礦)
這看起來像一個文檔錯誤。我正在努力解決這個問題,希望能提供更好的錯誤信息。 –