Queries on list of strings property
See original GitHub issueGoals
filtered list of strings property
Code Sample
const BookrackSchema = {
name: 'Bookrack',
properties: {
book_names:'string[]',
}
};
Bookrack1.book_names=['A','B','C'];
Bookrack2.book_names=['B','C','D'];
Bookrack3.book_names=['C','D','E'];
a:realm.objects('Bookrack').filtered(`ANY book_names = $0 `,'B');
b:realm.objects('Bookrack').filtered(`book_names CONTAINS $0 `,'B');
Expected Results
get Bookrack1 And Bookrack2
Actual Results
a.The keypath following ‘ANY’ or ‘SOME’ must contain a list b.Object type ‘Table’ not supported
Steps to Reproduce
Version of Realm and Tooling
- Realm JS SDK Version: ?“realm”: “^2.3.0”
- Node or React Native: ?node 8.4.0
- Client OS & Version: ?mac 10.13.4
- Which debugger for React Native: ?/None
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Query a list of objects that contains any string - Stack Overflow
I'm this expression to search inside a list of objects by a specific property: var result = myObject.Where(o => o.SearchString.
Read more >Querying a list property with SQL
I have a class that has a list property, which contains a list of other objects, and I want to join against it...
Read more >C# List<T> Collection - TutorialsTeacher
The List is a collection of strongly typed objects that can be accessed by index and having methods for sorting, searching, and modifying...
Read more >List functions - Cypher Manual - Neo4j
keys returns a list containing the string representations for all the property names of a node, relationship, or map. Syntax: keys(expression). Returns: ...
Read more >Using Linq, how to check if value exist in list of objects ... - Reddit
I have a Class with a "Name" property" . Given a List<string> I want to check if List<Class> contains any objects that match...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is currently not supported to query list of strings, only list of objects can be queried.
Realm Core has implemented comparison operators for array of primitive types, and it has been released in Realm JavaScript v10.0.0-beta.1. I suggest that you try out the latest beta (v10.0.0-beta.7).