AEM 6.5 GraphiQL configureation - field arrives empty | Community
Skip to main content
victoria_paskannaya
Level 2
November 28, 2023
Solved

AEM 6.5 GraphiQL configureation - field arrives empty

  • November 28, 2023
  • 2 replies
  • 784 views

I am trying to set up a GraphiQL endpoint in my AEM instance. I want the data to include the content of the CF but also the list of URLs where the CF is referenced. I found this data within CRXDE -- it exists in AEM -- but when I ask for a GraphiQL endpoint, the JSON field arrives empty instead of an array of AEM page links. Has anyone else experienced empty fields?

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

Hi @victoria_paskannaya 

 

Can you please provide more information on the issue. Can you also share the graphQL query that you are hitting and the CFM. This would help us to better understand the problem.

 

 

2 replies

ksh_ingole7
Community Advisor
ksh_ingole7Community AdvisorAccepted solution
Community Advisor
December 7, 2023

Hi @victoria_paskannaya 

 

Can you please provide more information on the issue. Can you also share the graphQL query that you are hitting and the CFM. This would help us to better understand the problem.

 

 

victoria_paskannaya
Level 2
January 8, 2024

Here is the query:

 

 

{ "data": { "siteCfModelByPath": { "item": { "_path": "/content/dam/my-corporate-site/test-dummy-cf-xx", "_variation": "master", "title": "test cf title yy", "reference": { "type": "page", "_path": "/content/my-corporate-site/en/articles/4-new-technologies-that-are-helping-to-improve-network-coverage", "_authorUrl": http://localhost:4502/content/my-corporate-site/en/articles/4-new-technologies-that-are-helping-to-improve-network-coverage.html, "_publishUrl": http://localhost:4503/content/my-corporate-site/en/articles/4-new-technologies-that-are-helping-to-improve-network-coverage.html, "title": null, "description": null }, "_metadata": { "stringMetadata": [ { "name": "title", "value": "test dummy cf title xx" }, { "name": "description", "value": "test dummy cf desc xx" } ], "stringArrayMetadata": [], "intMetadata": [], "intArrayMetadata": [], "floatMetadata": [], "floatArrayMetadata": [], "booleanMetadata": [], "booleanArrayMetadata": [], "calendarMetadata": [ { "name": "jcr:created", "value": "2023-11-16T12:32:13.412+01:00" }, { "name": "cq:lastModified", "value": "2023-11-20T15:36:14.626+01:00" } ], "calendarArrayMetadata": [] }, "_variations": [ "variation-z-title" ], "_model": { "_path": "/conf/my-corporate-site/settings/dam/cfm/models/site-cf-model", "title": "site-cf-model" } }, "_references": [ { "type": "page", "_path": "/content/my-corporate-site/en/articles/4-new-technologies-that-are-helping-to-improve-network-coverage", "_authorUrl": http://localhost:4502/content/my-corporate-site/en/articles/4-new-technologies-that-are-helping-to-improve-network-coverage.html, "_publishUrl": http://localhost:4503/content/my-corporate-site/en/articles/4-new-technologies-that-are-helping-to-improve-network-coverage.html, "title": null, "description": null } ] } } }

 

 

The information I was looking for was not GraphQL response. It seems incoming references are not even stored in a property. In the end, I went with another route to fetch the needed information.

 

Thank you for looking into it!

kautuk_sahni
Community Manager
Community Manager
December 11, 2023

@victoria_paskannaya  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