Realm-js: Support case insensitive queries

Created on 1 Mar 2016  路  5Comments  路  Source: realm/realm-js

Requested by a user. We should probably come up with a syntax better than the [c] used in predicates. Thoughts @bdash @kristiandupont @jpsim @cmelchior ?

T-Feature

Most helpful comment

@edmofro will do. Heres is what will be added:

At the moment only a subset of the NSPredicate syntax is supported in the query language. Basic comparison operators ==, !=, >, >=, <, and <= are supported for numeric properties. ==, BEGINSWITH, ENDSWITH, and CONTAINS are supported for string properties. String comparisons can be made case insensitive by appending [c] to the operator: ==[c], BEGINSWITH[c] etc.

All 5 comments

Love your work - will love it even more with this issue cleaned up :-)

This was just shipped in v0.11.0.

Could you please add to the docs?

@edmofro will do. Heres is what will be added:

At the moment only a subset of the NSPredicate syntax is supported in the query language. Basic comparison operators ==, !=, >, >=, <, and <= are supported for numeric properties. ==, BEGINSWITH, ENDSWITH, and CONTAINS are supported for string properties. String comparisons can be made case insensitive by appending [c] to the operator: ==[c], BEGINSWITH[c] etc.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmartindivmedianet picture jmartindivmedianet  路  3Comments

blagoev picture blagoev  路  3Comments

ugendrang picture ugendrang  路  3Comments

camslaz picture camslaz  路  4Comments

fever324 picture fever324  路  4Comments