Skip to content

Can I get the full objectType within a middleware? #1115

Discussion options

You must be logged in to vote

For posterity, I was able to do this by overriding the res.end function that is called here:

https://github.com/graphql-nexus/nexus/blob/master/src/runtime/server/utils.ts#L44

I found the full result is spit out in handler-graphql here which then calls res.end:

https://github.com/graphql-nexus/nexus/blob/master/src/runtime/server/handler-graphql.ts#L69

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by special-character
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant