I’m working on a React Native app, using Realm. I need to find all the items in a table, where a certain “name” property contains a constant string, or the other way around. Normally, I would do something like this:
instance.objects(model).filtered(“name CONTAINS[c] ‘myString’”);
However, I need to return the results where model.name contains ‘myString’ OR ‘myString’ contains model.name. I tried “‘myString’ CONTAINS[c] name” but it doesn’t work. Is there a way to accomplish what I need to do using only Realm queries?