Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

content fragment " content reference type"

Avatar

Level 1

Content Fragment Model

SreenivasuluPu_0-1713288516822.png

 

When I write below query :

 

 

query Navigation {
  navigationList {
    items {
      _path
      _variation
      name
      linklabel
      isactive
      link {
      
      }
    }
  }
}

 

 

I am not sure , what query fields to provide for "link content reference" authored. link {}

link is a page path selected.

 

 

3 Replies

Avatar

Community Advisor

Hi, 

Sorry, I am not sure if I understood correctly your question, but in the GraphQL Editor while you are writing your query you have an automatic "Documentation Explorer" on the right section which tells you which fields you have available to add to your query. Search for the model that your "link content reference" is based on.

EstebanBustamante_0-1713292145824.png


You can learn more here: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/headless/graphql... 

 

Hope this helps



Esteban Bustamante

Avatar

Community Advisor

@SreenivasuluPu 

 

Following link provides a good list of sample queries. Adding direct link to the one close to your requirement.

 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/headless/graphql...

 

Content Fragment structure used in the examples is here: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/headless/graphql... 


Aanchal Sikka

Avatar

Community Advisor

@SreenivasuluPu 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.



Esteban Bustamante