python - Can't Query by Key in NDB -


i'm attempting query entity key assuming ordering key ndb.

the line is

query = user.query().filter(user.key > ndb.key('user', key_id)) 

and it's throwing server error:

  file "/applications/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/api/datastore_types.py", line 1443, in validatepropertykey 'incomplete key found reference property %s.' % name) badvalueerror: incomplete key found reference property __key__. 

is i'm not allowed query key in way? other stack overflow posts seem indicate i'm doing should ok. can't find online pertaining error text, , i'm not sure else causing error.

any or insight appreciated.

try this

query = user.query().filter(user._key > ndb.key('user', key_id)) 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -