Hi,
For the below query, I want to pass the filter variable for name. Can anyone suggest if used such type of query in the AEM? I really appreciate any help you can provide.
query {
personList(filter: {
name: {
_logOp: OR
_expressions: [
{
value: "Ramesh"
},
{
value: "Smith"
}
]
}
}) {
items {
name
firstName
}
}
}
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Thanks, @krishna_sai for your quick response. The only problem with this approach is I need to change the query to increase filter parameters. Wondering if it's possible to pass an array of strings as a filter parameter instead of 2 separate parameters parameter1 and parameter2.
Views
Replies
Total Likes
Hi @MukeshAEM , I don't think it is possible here name is single valued. If the filtering parameter is multivalued like tags etc. you can follow something like this mentioned in below https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/graphql-array/td-p/425661
Thanks,
Krishna