-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directives do not run on Objects #1120
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hey, Nevertheless, I observed that the OBJECT directive still doesn't run if it is defined like this:
But does work when the directive is defined like this:
go version: 1.14 |
i cant log the object like your gave example |
What happened?
I added a directive that is meant to provide some new values in the context and used this directive on a type for example Query. The directive function did not run.
What did you expect?
The directive function should run and pass the related info in the context.
Minimal graphql.schema and models to reproduce
provideLoaders
will not be run whenhello
is queried.versions
gqlgen version
? 0.11.3go version
? 1.14The text was updated successfully, but these errors were encountered: