コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.
解決済み

AEM 6.5 GraphiQL configureation - field arrives empty

Avatar

Level 2

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?

トピック

トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

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.

 

 

元の投稿で解決策を見る

3 返信

Avatar

正解者
Community Advisor

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.

 

 

Avatar

Level 2

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!

Avatar

Administrator

@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