2

ObjectBox has QueryBuilder's method in with arrays of long and int as a parameter:

QueryBuilder<T> in(Property property, int[] values) 

However, there are some cases when the id of an object is String. How can we query a list of elements using an array of their String uids?

For example, we are caching Android Contacts and want to find subsets basing on their LOOKUP_KEY.

1 Answer 1

2

This feature is tracked here: https://github.com/objectbox/objectbox-java/issues/361

For now, you would have to combine individual "equal" conditions with an "or" operator.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.