Sha256: 6fab10bbfdd394eacbb7fab19109370d9d1c5dc0cfd10e8e04bd95fa562a573b

Contents?: true

Size: 415 Bytes

Versions: 75

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true
GraphQL::Directive::SkipDirective = GraphQL::Directive.define do
  name "skip"
  description "Directs the executor to skip this field or fragment when the `if` argument is true."
  locations([GraphQL::Directive::FIELD, GraphQL::Directive::FRAGMENT_SPREAD, GraphQL::Directive::INLINE_FRAGMENT])

  argument :if, !GraphQL::BOOLEAN_TYPE, 'Skipped when true.'
  default_directive true
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
graphql-1.8.18 lib/graphql/directive/skip_directive.rb
graphql-1.8.17 lib/graphql/directive/skip_directive.rb
graphql-1.8.16 lib/graphql/directive/skip_directive.rb
graphql-1.8.15 lib/graphql/directive/skip_directive.rb
graphql-1.8.14 lib/graphql/directive/skip_directive.rb
graphql-1.8.13 lib/graphql/directive/skip_directive.rb
graphql-1.8.12 lib/graphql/directive/skip_directive.rb
graphql-1.9.0.pre1 lib/graphql/directive/skip_directive.rb
graphql-1.8.11 lib/graphql/directive/skip_directive.rb
graphql-1.8.10 lib/graphql/directive/skip_directive.rb
graphql-1.8.9 lib/graphql/directive/skip_directive.rb
graphql-1.8.8 lib/graphql/directive/skip_directive.rb
graphql-1.8.7 lib/graphql/directive/skip_directive.rb
graphql-1.8.6 lib/graphql/directive/skip_directive.rb
graphql-1.8.5 lib/graphql/directive/skip_directive.rb
graphql-1.8.4 lib/graphql/directive/skip_directive.rb
graphql-1.8.3 lib/graphql/directive/skip_directive.rb
graphql-1.8.2 lib/graphql/directive/skip_directive.rb
graphql-1.8.1 lib/graphql/directive/skip_directive.rb
graphql-1.8.0 lib/graphql/directive/skip_directive.rb