Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objectify query filter by list?

Is it possible to make an Objectify query with a list and get a list of all objects matching the list? For example

List<String> vinNumberList;
Query<CarObject> q=ofy.query(CarObject.class).filter("vin",vinNumberList);
like image 840
Patrick Avatar asked Nov 05 '11 00:11

Patrick


1 Answers

Yes, its possible... add "in" , like this

ofy.query(CarObject.class).filter("vin in",vinNumberList);
like image 129
Daniel Avatar answered Oct 24 '22 12:10

Daniel