Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

AEM-GraphQL -@include and @skip


Level 5

Hi Team,


In a headless approach, We are using Graph QL API to send Offer data (stored in Content fragment) to other channels like Mobile APP etc.


So, we have used



Is there any way, we can manipulate GrapghQL response so that we could remove all empty/null values from response.

1) Using any directive ? like @include@skip

2) Is there any way to override something through Code?


Thanks in advance.






1 Accepted Solution


Correct answer by
Community Advisor
3 Replies


Community Advisor

As far as I understand, you are not sure what each value will return null : it may or it may not be null. In this case it is impossible to adjust your schema to only contain non-null values. You would have to deal with it in the frontend and completely exclude null values there.


I think its better to replace it from front end(consumer) side response


Level 5

@arunpatidar  Thank you very much Arun for your reply.



Since we get GrapghQL connector installed in AEM for Content fragment -Headless approach.


What I wanted to ask is :


Is there any way we can override any Model/Servlet that are being used in Graph QL connector and then accordingly could manipulate API response.


Thanks in advance.





Correct answer by
Community Advisor

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now