Expand my Community achievements bar.

Writing Multiple AND OR logics in GraphQL

Avatar

Level 2

is it possible to wite multiple AND OR logical operator in aem 6.5 graphQL

query getOfferList($path:ID!,$country1:String!, $country2:String!, $country3:String!, $country4:String!){
offerList(
filter:{
_path:{
_expressions:[{
value:$path
_operator:STARTS_WITH
}]
}
Country:{
_logOp:OR
_expressions:[{
value:$country1
_operator:EQUALS
},
{
value:$country2
_operator:EQUALS
}
]
}
_logOp:OR
Country:{
_logOp:OR
_expressions:[{
value:$country3
_operator:EQUALS
},
{
value:$country4
_operator:EQUALS
}
]
}
}

){
items{
Country
Title
startDate
endDate
}
}
}

0 Replies