Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

GraphQL persited Queries Dynamic Query Variable issues

Avatar

Level 2

we have a filter panel in left side of site. we will be selecting multiple option from side panel.Those selected multiple values we have to pass into query as params and get results of CF using GraphQL. Since those params are dynamic, its not working with static query params persited Queries in AEM.
Any solution to resolve this issue?

2 Replies

Avatar

Community Advisor

Could you try to call directly with encoded value of variable and see if it brings results

<AEM_HOST>/graphql/execute.json/<PERSISTENT_QUERY_PATH>;variable1=value1;variable2=value2

 

Please check the related post

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/passing-params-to-persiste... 

in the example explained deals with static parameters but my requirement is dynamic number of parameters in persistent Query and  number of parameters count we get on run time.