-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
$all
on _id
leads to Exception if Collection with one element is passed
#4736
Comments
Thank you for getting in touch. Please do not upload images but take the time to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem. Thank you! |
okay, sorry for that, i will take a note of that, i've debugged a little bit, it look like in this method it skips in the first phase it skips if ("$nin".equals(key) || "$in".equals(key)) and in result recursively converts objectId from array with single element into one objectId and of course it becomes invalid for $all operator `
|
Thank you @YuriiAndreitsev - I was able to reproduce the issue. We'll have a closer look! |
$all
on _id
leads to Exception if Collection with one element is passed
if one element in Collection is passed in .all() criteria it is not preserved as array in spring-data-mongodb higher that 4.3.0
The text was updated successfully, but these errors were encountered: