问题
Is there a way to exclude in the query when a list is filtered? Something like: allow to fetch when the key is not inside keys list.
List<Key<User>> userKeys = getUserKeys();
ofy().load().type(User.class).filter("__key__ ?????", userKeys).list();
回答1:
This operation is not exposed by the low level api. File a feature request in the GAE issue tracker:
https://code.google.com/p/googleappengine/issues/list
来源:https://stackoverflow.com/questions/31933012/objectify-opposite-of-in-filter-operation