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
I've tried to use the new 'not' operator for some of my logic while I noticed it doesn't get applied correctly - it is applied 'not' to the first condition instead of the whole group
It loolks like the example presents the issue as well:
const filter = {
not: {
and:[
{SomeProp: 1},
{AnotherProp: 2}
]
}
};
I've tried to use the new 'not' operator for some of my logic while I noticed it doesn't get applied correctly - it is applied 'not' to the first condition instead of the whole group
It loolks like the example presents the issue as well:
const filter = {
not: {
and:[
{SomeProp: 1},
{AnotherProp: 2}
]
}
};
buildQuery({ filter })
=> '?$filter=(not (SomeProp eq 1) and (AnotherProp eq 2))'
It should be
=> '?$filter=(not ((SomeProp eq 1) and (AnotherProp eq 2)))'
as otherwise it would be considered as
(not SomeProp eq 1)
and (AnotherProp eq 2)
The text was updated successfully, but these errors were encountered: