You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When using the method is in the Criteria class together with any other filter element (without the and operator), then the created filter document is invalid.
which is valid and more or less the same, just does not use "is".
Expected
When using is in combination with other filters for the same property, all filters should be combined into a sub-document using $eq for the equality check of the value provided to the is method.
Description
When using the method is in the Criteria class together with any other filter element (without the and operator), then the created filter document is invalid.
Relevant code:
spring-data-mongodb/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Criteria.java
Lines 947 to 950 in 5b86b2f
How to reproduce
The following Criteria object
creates
which is invalid.
Using the following Criteria object
creates
which is valid and more or less the same, just does not use "is".
Expected
When using is in combination with other filters for the same property, all filters should be combined into a sub-document using $eq for the equality check of the value provided to the is method.
should create
The text was updated successfully, but these errors were encountered: