StoryAs a server, I want to add an Acceptance criteria
|
Answered by
enisdenjo
Aug 16, 2023
Replies: 1 comment 2 replies
|
This is already possible with the import { createHandler } from 'graphql-http';
import { schema } from './my-graphql-schema';
const handler = createHandler({
schema,
onOperation(_req, _args, result) {
return {
...result,
extensions: {
myCustom: 'metadata',
},
};
},
}); |
2 replies
Answer selected by
enisdenjo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is already possible with the
onOperationhandler hook. Roughly: