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

GraphQL query working in AEM project

  • December 5, 2023
  • 2 replies
  • 1589 views

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.

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

2 replies

aanchal-sikka
Community Advisor
Community Advisor
December 5, 2023

Hello @anas_r 

 

Please assure that the Persisted queries are also synced.

 

Aanchal Sikka
Anas_RAuthor
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?

Anas_RAuthor
Level 2
December 6, 2023

@anas_r 

 

Go to General > GraphQL Endpoints

You would see a list like this 

Check with one matches your endpoint.

Select it, and click Edit

You would get the /conf path after "GraphQL schema is taken from configuration"

 

 


@aanchal-sikka There is no endpoints listed here, both in production and development environments.

 

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_RAuthor
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?