擅长:python、mysql、java
<p>是否可以重写查询以使用GQL?在</p>
<p><strong>编辑</strong></p>
<p>否决我自己的建议。不可能重写查询以使用GQL。GQL不支持<code>OR</code>。在</p>
<p>参见:<a href="https://developers.google.com/appengine/docs/python/datastore/gqlreference" rel="nofollow">https://developers.google.com/appengine/docs/python/datastore/gqlreference</a></p>
<p><strong建议
如果还将祖先对象修改为模型属性,则可以执行所需的查询。E、 g</p>
<pre><code>class Club(ndb.Model):
parent = ndb.KeyProperty()
</code></pre>