GraphQL query working in AEM project | Adobe Higher Education
Skip to main content
Level 2
December 5, 2023

GraphQL query working in AEM project

I'm working on an AEM project. I'm experiencing an issue, with an API, where I'm not getting data on the dev server, but I'm getting it on the production server. The content and assets in production had been synced to development recently. The code is also in sync. 
Based on the code, I've identified that the required data is fetched using a GraphQL query. Why is there a difference in the data obtained by graphQL query when the data are in sync? Could you please let me know if there is any external database setup to get these data? What can I do to find out? 
I would like to get an idea of how graphQL setup works in my AEM environment.

Ce sujet a été fermé aux réponses.

2 commentaires

aanchal-sikka
Community Advisor
Community Advisor
December 5, 2023

Hello @anas_r 

 

Please assure that the Persisted queries are also synced.

 

Aanchal Sikka
Anas_RAuteur
Level 2
December 6, 2023

@aanchal-sikka I followed the steps mentioned here to sync the GraphQL queries using package manager.
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-api/persisted-queries.html?lang=en

 

I couldn't find  a path like /conf/wknd/settings/graphql/persistentQueries.
Where can I find the persisted queries?

aanchal-sikka
Community Advisor
Community Advisor
December 6, 2023

@anas_r 

 

You would have persisted queries under you own tenant, like

/conf/<site-name>/settings/graphql/persistentQueries

 

Just check whats the endpoint you are using. Persisted Queries are stored relative to it

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
December 11, 2023

@anas_r Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
Anas_RAuteur
Level 2
December 12, 2023

@kautuk_sahni The answers were helpful for me. I could understand the concepts of GraphQL endpoints and also my AEM project is using an external system for GraphQL. But still I don't have a clue what external system is using this. As per the URL I think that this an AWS service. But which service? Also how the AEM - External graphQL system configuration is done. How can I synchronise this GraphQL system between prod and dev environments?