-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to perform custom query logic #2744
Comments
@hay12396 how does that solve the problem if the realm object doesn't have that field saved? In my example the full name is computed based the first and last names, so using contains wouldn't work. |
As it is now, you will need to split the text to first&last name and use contains twice. |
Ok, i still think this is a useful feature for searching a realm. For instance if the example was changed to some other type of non-text based search where the value being searched needs to be derived from fields it would be difficult to do. |
@johnryan I think this is a great feature to have aswell 👍 |
Unfortunately it is not supported by our underlying storage engine (which is not open-sourced yet) right now :( But it would be a very useful feature! |
Cocoa is tracking a similar feature here: realm/realm-swift#1265 |
Not sure if something like this will be possible based on how realm is designed but I have a model class that has fields: firstName and lastName and my model has a method getFullName().
I have search functionality that relies on the full name to search for results. Currently (it seems) that the only way to make this work would be to add a field fullName and keep that updated whenever the first or last name is updated.
It would be convenient if you could do something like this:
If there's any other way of accomplishing something similar that would be great too.
Thanks!
The text was updated successfully, but these errors were encountered: