Closed joshuaavalon closed 1 year ago
Great spot! Would you like to send a PR to address this?
I have notice that it is able to refresh onGatewayReplaceSchema
.
However, there are not any hooks on extendSchema
. Unless, this plugin expose a function to force refresh, it needs mercurius to add a new hook.
I think adding an onExtendSchema
system hook to mercurius could be pretty useful! Would you be interested in adding this as well?
@mcollina what do you think?
I concur with your assessment!
I'm attempting to work on this, but I ran into a problem where Solved.extendSchema
is defined outside of the fastifyGraphql
function, making it impossible for me to access to context
parameter that I need to call the hook handler. Am I missing something?
As title, if I use
extendSchema
after registeringmercurius-validation
, it no longer works.