Re: Graphql Fragment not resolving fields | Community
Skip to main content
Vijayalakshmi_S
Level 10
April 19, 2022

Re: Graphql Fragment not resolving fields

  • April 19, 2022
  • 1 reply
  • 920 views

There is no sample/reference for usage of fragment in GraphQL query with respect to Content Fragments Schema in the official docs - https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-api/sample-queries.html?lang=en

 

I was able to arrive at this query by examining the Docs section in GraphiQL local IDE that the result of Query testList is TestModelResults. Hence created fragment out of the same. 

 

fragment on TestModel (the one you did) will be able to output the OOTB/standard variables like _path/_typename not the custom/dynamic ones(headline)

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

1 reply

Level 2
April 19, 2022

Yea I also noticed that the standard properties do work. The question is why. I cannot really understand this but maybe this is just an error in AEM?