-
StoryAs a server, I want to add an Acceptance criteria
|
Beta Was this translation helpful? Give feedback.
Answered by
enisdenjo
Aug 16, 2023
Replies: 1 comment 1 reply
-
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',
},
};
},
}); |
Beta Was this translation helpful? Give feedback.
1 reply
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
onOperation
handler hook. Roughly: