Sha256: ece2c069858ce460b534001feeed5e3bb84982bcf447d41ab6cfe7dd7d6ad7ae

Contents?: true

Size: 358 Bytes

Versions: 28

Compression:

Stored size: 358 Bytes

Contents

GraphQL::Directive::SkipDirective = GraphQL::Directive.define do
  name "skip"
  description "Ignore this part of the query if `if` is true"
  locations([GraphQL::Directive::FIELD, GraphQL::Directive::FRAGMENT_SPREAD, GraphQL::Directive::INLINE_FRAGMENT])

  argument :if, !GraphQL::BOOLEAN_TYPE

  include_proc -> (arguments) {
    !arguments["if"]
  }
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
graphql-0.15.3 lib/graphql/directive/skip_directive.rb
graphql-0.15.2 lib/graphql/directive/skip_directive.rb
graphql-0.14.2 lib/graphql/directive/skip_directive.rb
graphql-0.15.1 lib/graphql/directive/skip_directive.rb
graphql-0.15.0 lib/graphql/directive/skip_directive.rb
graphql-0.14.1 lib/graphql/directive/skip_directive.rb
graphql-0.14.0 lib/graphql/directive/skip_directive.rb
graphql-0.13.0 lib/graphql/directive/skip_directive.rb