Sha256: c9b10d924da037f08207df3c2673192f48bbb2bffa58d103f5c562fbeb01ca81
Contents?: true
Size: 365 Bytes
Versions: 25
Compression:
Stored size: 365 Bytes
Contents
GraphQL::Directive::IncludeDirective = GraphQL::Directive.define do name "include" description "Include this part of the query if `if` is true" on([GraphQL::Directive::ON_FIELD, GraphQL::Directive::ON_FRAGMENT]) argument :if, !GraphQL::BOOLEAN_TYPE resolve -> (arguments, proc) { if arguments["if"] proc.call else nil end } end
Version data entries
25 entries across 25 versions & 1 rubygems