Realm: Filter with IN Operator

Viewed 7970

I have an array of Integers:

▿ 2 elements
  - [0] : 123459
  - [1] : 1031020

And would like to filter my objects based on the array.

.filter("code IN \(myCodeArray)")

But this results in a crash. How do I use the IN operator correctly?

1 Answers
Related