I have about a hundred objects stored in the Cloud Datastore with Kind
= Animal
. I would like to get all Animal
s from the database via the low level API or with Objectify.
With Objectify you can do the following:
List<Animal> animals = ofy().load().type(Animal.class).list();
Read the documentation on queries it explains in detail how to query the Datastore
using Objectify. In some ways I find the Objectify documentation to be much simpler to understand and concise compared to the GAE documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With