Python, gae, ndb - get all keys in a kind

Viewed 3551

I know how to get all entities by a key using Book.get_by_id(key) where Book is an ndb.Model.

How do I get all the keys within my Kind? Is it using fetch()(https://cloud.google.com/appengine/docs/python/ndb/queryclass#Query_fetch) ?

  • I don't want to get the keys/IDs from a given entity or some value. Just retrieve all the available keys, so I could retrieve their respectful entities and display it all to the user
3 Answers
Related