techniq/odata-query

'in'-Operator needs to be grouped together

samuelportz opened this issue · 0 comments

When using the in-Operator with following filter the query doesn't reflect the implied and

filter: {
        bar: 1,
        foo: {
            in: ['a', 'b'],
            contains: 'foo'
        }
    }
}

Result

?$filter=bar eq 1 and foo eq 'a' or foo eq 'b' and contains(foo,'foo')

Expected Outcome

?$filter=bar eq 1 and (foo eq 'a' or foo eq 'b' and contains(foo,'foo'))