Closed Ericnr closed 7 months ago
I just realized this lib doesn't implement the graphql executor itself which is what does the type-checking, so this is not possible. I figure this can be solved at resolver level, so I'd be looking at Pothos plugins. You can close this issue at will!
No worries!
I want to be able to modify a query's arguments before it gets passed to the resolver. I tried doing this in the preExecution hook but it seems I cant change the type of
variables
since variables gets type-checked after the hook.This is a code example using Pothos of what I want to make possible
I expected this to work using the preExecution hook, but if I turn
todoId
into an int in that hook I get the errorSo I believe this is a case for a new hook that would run before this type-checking occurs.