Reputation: 185
I have entities of kind Users. Each user entity belongs to a different entity group. Is it possible to perform a query by Kind with equality filters on certain properties e.g date_of _birth and zipCode. The aim is to get the entities with no intention of modifying them
Upvotes: 1
Views: 164
Reputation: 310
Yeah, you can add filter to query like this:
Query q = new Query(kind);
q.addFilter("zipCode", FilterOperator.EQUAL, "11000");
PreparedQuery pq = datastore.prepare(q);
return pq.asIterable();
Upvotes: 1