Skip to content

Commit

Permalink
Update lib/resolvers/parse/ast2cqn/where.js
Browse files Browse the repository at this point in the history
Co-authored-by: Marcel Schwarz <[email protected]>
  • Loading branch information
etimr and schwma authored Jan 8, 2024
1 parent 2cbb3ba commit 2a82c98
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/resolvers/parse/ast2cqn/where.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,8 @@ const _objectFieldTo_xpr = (objectField, columnName) => {
const operand = objectField.value

if (gqlOperator === LOGICAL_OPERATORS.in) {
return [
ref,
_gqlOperatorToCdsOperator(gqlOperator),
{
list:
operand.kind === Kind.LIST ? operand.values.map(value => ({ val: value.value })) : [{ val: operand.value }]
}
]
const list = operand.kind === Kind.LIST ? operand.values.map(value => ({ val: value.value })) : [{ val: operand.value }]
return [ref, _gqlOperatorToCdsOperator(gqlOperator), { list }]
}

if (operand.kind === Kind.LIST) {
Expand Down

0 comments on commit 2a82c98

Please sign in to comment.