You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Entry : Object {
...
dynamic var tags = List<String>()
}
and then:
let results = realm.objects(Entry.class).filter("any tags == %@", "foo") // or
let results = realm.objects(Entry.class).filter("any tags contains[c] %@", "foo") // or
let results = realm.objects(Entry.class).filter("any SELF.tags in %@", ["foo"])
Expected Results
Results populated with Entry objects having "foo" in tags field
Actual Results
'Invalid value', reason: 'Expected object of type (null) in IN clause for property 'tags' on object of type 'Entry', but received: foo'
Steps to Reproduce
just create a realm and put one instance of Entry class then try to fetch it by searching by tags
Code Sample
Version of Realm and Tooling
ProductName: Mac OS X
ProductVersion: 10.13.1
BuildVersion: 17B48
/Applications/Xcode.app/Contents/Developer
Xcode 9.1
Build version 9B55
(not in use here)
/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
(not in use here)
/usr/bin/git
git version 2.13.6 (Apple Git-96)
Realm framework version: 3.0.2
Xcode version: 9.1
iOS/OSX version: HIGH Sierra 10.13.1
Dependency manager + version: ?
The text was updated successfully, but these errors were encountered:
Goals
and then:
Expected Results
Results populated with Entry objects having "foo" in tags field
Actual Results
'Invalid value', reason: 'Expected object of type (null) in IN clause for property 'tags' on object of type 'Entry', but received: foo'
Steps to Reproduce
just create a realm and put one instance of Entry class then try to fetch it by searching by tags
Code Sample
Version of Realm and Tooling
Realm framework version: 3.0.2
Xcode version: 9.1
iOS/OSX version: HIGH Sierra 10.13.1
Dependency manager + version: ?
The text was updated successfully, but these errors were encountered: