-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update list of supported query method keywords. #3950
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
Conversation
|
||
| `IgnoreCase` | ||
| `findByUsernameIgnoreCase(String username)` | ||
| `{"username" : {"$strcasecmp" : username }}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$strcasecmp
is an aggregation operator. The MongoQueryCreator
uses a Pattern
that translates to { $regex : '^username$', '$options' : 'i' }
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the feedback. I will make the changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @christophstrobl. I have made the changes. You were right, that regex
is used in the code.
Is it ok to use double quotes instead of single quotes? I noticed that strings are used and even the i
from the options
is a String
.
Thanks for the contribution @mihailcornescu! Merged to main development line and back ported to 3.3.x and 3.2.x. |
Fix for #3916.
@IgnoreCase
to mongodb.repositories.queries query table documentation.