You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon further investigation on a very barebones schema it seems the directive runs for each field of the input. This makes no sense to me because if I wanted that behavior the validate directive would be configured to be set on INPUT_FIELD_DEFINITION.
What happened?
I wanted to implement a custom directive for
input
types called@validate
.My directive hook looks like this:
What did you expect?
I expected the
validate.StructCtx
to be called, andobj
to be of the typemodel.CreateCarInput
.Minimal graphql.schema and models to reproduce
versions
go run github.com/99designs/gqlgen version
v0.17.49go version
go version go1.22.3 linux/amd64The text was updated successfully, but these errors were encountered: