Closed tall-dan closed 5 years ago
Are you using the new interpreter? I think that's a requirement.
ie: use GraphQL::Execution::Interpreter
on your schema
edit: i'm going by this: https://github.com/rmosolgo/graphql-ruby/blob/a4624789f2f1d13acde4ab8b28e2d8056c54b91b/spec/graphql/schema/directive/transform_spec.rb#L19-L20
Oh good catch, thank you!
Problem Adding a custom directive makes it available on the SDL, but the directive has no effect on output
Versions
1.9.3
0.4.0
2.3.6
4.2.10
Schema
The directive,
GraphQL::Schema::Directive::Transform
is what comes included in the gem, seen here. However, theresolve
function implemented by that class doesn't seem to be getting called - I've put abinding.pry
within, and it never gets hit. When using thetransform
directive, my data is not transformed:I've been digging through source code, and I've only been able to find one place that implements directives:
GraphQL::Execution::DirectiveChecks
. This only deals with inclusion / exclusion.Am I missing something here, or should the case statement in that module be doing more?