kpaxton opened a new issue, #14664:
URL: https://github.com/apache/grails-core/issues/14664
when building a criteria like below the mongo query that gets created is
incorrect. the 'or' is ignored completely
`def criteria = Class.createCriteria()
criteria.list(){
eq("field1", "value1")
field2{
isNull("subfield2")
}
or {
field2{
'in'("subfield2.subsubfield", list)
}
eq("field3","value3")
}
}`
produces:
`{
"$and":[
{"field1":"value1"}
{"field2.subfield2":null}
{"field2.subfield2.subsubfield":{"$in":["val1","val2","val3","val4"]}}
{"field3":"value3"}
]
}`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]