applying sling filter to GraphQL endpoint | Community
Skip to main content
Level 4
May 6, 2022 6:03 AM UTC
Solved

applying sling filter to GraphQL endpoint

i am trying to apply a sling filter to filter requests coming to /content/cq:graphql/global/endpoint.json because I want to add few fields to the json response.

But my filter is not getting invoked when I send a POST request to the graphql endpoint.

anybody tried doing so?or any pointers?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
May 6, 2022 8:27 AM UTC

Hi,

I have not tried but if you want to change the response, you can try using https://sling.apache.org/documentation/bundles/output-rewriting-pipelines-org-apache-sling-rewriter.html 

Arun Patidar

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
May 6, 2022 8:27 AM UTC

Hi,

I have not tried but if you want to change the response, you can try using https://sling.apache.org/documentation/bundles/output-rewriting-pipelines-org-apache-sling-rewriter.html 

Translate
Arun Patidar