• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
1

Content Fragment reference missing from the Graphql response when called recursively

New Here ,
Jul 26, 2022 Jul 26, 2022

Copy link to clipboard

Copied

In the headless approach that we are following for our website, we are working only with Content Fragments.
That said, Content Fragments are behaving like the actual pages.
We are facing a scenario in which our Page level Content Fragment(A) contains a header(H). Header(H) consists of navigation links to our primary pages (A,B,C ---all of which are Fragment references).
As we can see, one of the navigation links in the Header(H) consists of the same Page level Content Fragment(A) from which it is being called.

In such a scenario, when we query the Page level Content Fragment(A) for the underlying navigation links in the header(H), we see that the response consisting of the navigation links doesn't contain the calling Page level fragment reference(A).

 

query GetPageByPath($path: String!){
  pageByPath(_path: $path){
    item{
      header{

        navigationLinks{
          ... on PageModel{
            _path
          }
        }
      }
    }
  }
}

where $path --->is the Page level Content Frgment(A)
      header---> H

 Response:

 {
  "data": {
    "pageByPath": {
      "item": {
        "header": {
          "navigationLinks": [
            {
              "_path": "Path of B content Frgament",
              "_path": "Path of C Content Fragment",
            }
          ]
        }
      }
    }
  }
}

Is there any reason why the Content Fragment A is missing from the navigation links. Is it being cached, or is there any logic that discards the calling fragment from the result?
Is this feature OOTB from AEM, if so, is there a way to resolve this.

TOPICS
Bug

Views

158

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 26, 2022 Jul 26, 2022

AEM isn't supported here. Try this site instead:

https://experienceleaguecommunities.adobe.com/

Votes

Translate

Translate
Community Expert ,
Jul 26, 2022 Jul 26, 2022

Copy link to clipboard

Copied

Hi

Can you tell use which Adobe application you're using so we can move the thread to the correct forum

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2022 Jul 26, 2022

Copy link to clipboard

Copied

Adobe Experince Manager, AEM as Cloud service

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2022 Jul 26, 2022

Copy link to clipboard

Copied

LATEST

AEM isn't supported here. Try this site instead:

https://experienceleaguecommunities.adobe.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines