Querying for entities with missing properties in app engine Datastore?

后端 未结 1 1794
不知归路
不知归路 2020-12-11 17:25

I have a model which looks like this:

class Example (db.Model) :
 row_num = db.IntegerProperty(required=True)
 updated = db.IntegerProperty()
 ...
 ...


        
相关标签:
1条回答
  • 2020-12-11 18:18

    In GQL, objects which do not have a value for a property cannot be returned by queries on that property, so what you're asking for is impossible without a default value.

    Reference: section headed "Entities Without a Filtered Property Are Never Returned by a Query" on this page.

    0 讨论(0)
提交回复
热议问题