Skip to main content
New Participant
February 1, 2023

GraphQL persited Queries Dynamic Query Variable issues

  • February 1, 2023
  • 1 reply
  • 738 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Saravanan_Dharmaraj
New Participant
February 1, 2023

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-persisted-query-endpoint-aem-gql/m-p/549140 

New Participant
February 2, 2023

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.