Expand my Community achievements bar.

Re: Graphql Fragment not resolving fields

Avatar

Community Advisor

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-ap...

 

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. 

Vijayalakshmi_S_0-1650392046139.png

 

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)

1 Reply

Avatar

Level 2

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?