Sha256: 02b29ed60c343b142faa5272e3aed23a5c60f0102846a7fa2293952a4c452a79
Contents?: true
Size: 360 Bytes
Versions: 25
Compression:
Stored size: 360 Bytes
Contents
GraphQL::Directive::SkipDirective = GraphQL::Directive.define do name "skip" description "Ignore 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