【发布时间】:2012-08-09 03:19:22
【问题描述】:
我想编写一个 ndb 查询,从结果集中排除由其 id 标识的特定实体。
我尝试了以下方法:
result = Entity.query(Entity.key.id() != 'entity-id', *some other condition*).fetch()
Entity.key.id() != 'entity-id' 位会引发错误。什么是正确的语法?
【问题讨论】:
标签: google-app-engine google-cloud-datastore