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
I cannot get a custom scalar directive to fire, am I misunderstanding the usage of them or is there something wrong with gqlgen? If I do something like this:
directive @onScalar on SCALAR
scalar MyScalar @onScalar
input MyInput {
in: MyScalar
}
type mutation {
doSomething(in: MyInput): Boolean
}
The directive function is never executed when I call the doSomething mutation. Is it not supposed to fire whenever the custom scalar is used?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I cannot get a custom scalar directive to fire, am I misunderstanding the usage of them or is there something wrong with gqlgen? If I do something like this:
The directive function is never executed when I call the doSomething mutation. Is it not supposed to fire whenever the custom scalar is used?
Beta Was this translation helpful? Give feedback.
All reactions