-
Notifications
You must be signed in to change notification settings - Fork 236
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
MongoError: unknown operator: $$eq #532
Comments
@hacksparrow , could you please take a look? Thanks. |
@zekylaf can you share a sample app reproducing the error? I checked on a LB3 app, I don't get that error. |
Sure. https://github.com/zekylaf/lb-eq-test Run it with:
I could verify that this happens with loopback-connector-mongodb v4.0.0 or greater. It works fine with v3.9.2 Thanks |
Thanks @zekylaf |
@zekylaf please use this workaround while we work on a solution: var args = {
where: {
'title.name': 'book name',
'title.description': 'book description',
}
}; |
@hacksparrow great, thanks. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
Dear @hacksparrow, until the release v3.9.2 we have in the buildWhere a step to clean $ from the operator before the handler |
Re-opened. @fhsakai |
@agnes512, could you please take a look at this? Thanks. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
For everyone who's watching is issue:
And here are some examples for using the MongoDB update operators:
you might need to do some type conversion to make Typescript happy:
I think there are two things to imrove:
|
Hi, I was using v3.9.2 and it was working good. Recently I updated to v5.0.0 and I am getting this error when trying to use $eq operator.
MongoError: unknown operator: $$eq
I am using
allowExtendedOperators: true
.The way I am using it:
Something I can do?
Thanks
Acceptance Criteria
pushAll
from the list as it is deprecated.$
, Mongodb users might tend to add the prefix. This issue might be caused by removing the step to clean$ in the buildWhere. Maybe we can add it back.The text was updated successfully, but these errors were encountered: