AEM CLoud GraphQL Filter using string array
Hi Team,
Could you please help me on GraphQL persistent queries.
The use case is I want to pass some group names in query paramaters and I want to filter the CF's matching with any group name.
I am using query like this
query ($userGroups: [String]!) {
sNewFragmentList(filter: {
deliveryGroup: {
_expressions: [
{
values: $userGroups
_operator: CONTAINS
}
]
}
}) {
items {
_path
title
description
deliveryGroup
}
}
}And I am passing parameters as
{
"userGroups": "group1,group2,group3"
}
This query is not working at all, could anyone pls help me to check every group from the parameters list and filter only those fragments.
Thanks.