Home » Java » java – Is there a possibility to add an additional schema field to GraphQL's response at runtime?-Exceptionshub

java – Is there a possibility to add an additional schema field to GraphQL's response at runtime?-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I would like to add an additional field from graphql.schema to response of the GraphQL query if this value isn’t null, thus it must be done at runtime to check it. I tried with implementing Instrumentation interface and overriding the instrumentExecutionResult() method so far. Any other ideas?

How to&Answers: