MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

Post filtering empty results object - realm.js

let resultObj = realm.objects(‘Dog’).filtered(‘type=5 OR type=4’);

Say that resultObj returns an empty {}

Trying to post filter resultObj generates a “missing right-hand side OR” error
i.e. resultObj.filtered(‘subtype=2’); => generates the “missing right-hand side OR”

Is this expected? If the original resultObj filter string doesn’t contain an OR operator but still generates an empty results object, then post filtering doesn’t generate any error.

Running:
“realm”: “^5.0.3”,
“react”: “16.9.0”,
“react-native”: “0.61.5”,