We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Getting MongoError: unknown operator: $re when performing a simple regex find like so:
MongoError: unknown operator: $re
this.repo.findOne({ name: { $re: 'test' } })
To Reproduce Steps to reproduce the behavior:
Expected behavior To return documents matching the input regex.
Versions
The text was updated successfully, but these errors were encountered:
That operator is designed for SQL, you don't need it in mongo, just pass the regexp instance directly:
this.repo.findOne({ name: /test/ } })
(sure we can make it compatible with mongo too)
Sorry, something went wrong.
fix(mongo): add support for $re operator in mongo
27e7242
Closes #613
Closing as fixed in v4 via 27e7242
4d8e91d
13fe6e5
B4nan
No branches or pull requests
Describe the bug
Getting
MongoError: unknown operator: $re
when performing a simple regex find like so:To Reproduce
Steps to reproduce the behavior:
Expected behavior
To return documents matching the input regex.
Versions
The text was updated successfully, but these errors were encountered: