Sha256: a83f83135959d2d8842dd0b87add242c2c4be32a41648237d440be30c69ea6b2

Contents?: true

Size: 363 Bytes

Versions: 28

Compression:

Stored size: 363 Bytes

Contents

GraphQL::Directive::IncludeDirective = GraphQL::Directive.define do
  name "include"
  description "Include 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.18.14 lib/graphql/directive/include_directive.rb
graphql-0.18.13 lib/graphql/directive/include_directive.rb
graphql-0.18.12 lib/graphql/directive/include_directive.rb
graphql-0.18.11 lib/graphql/directive/include_directive.rb
graphql-0.18.10 lib/graphql/directive/include_directive.rb
graphql-0.18.9 lib/graphql/directive/include_directive.rb
graphql-0.18.8 lib/graphql/directive/include_directive.rb
graphql-0.18.7 lib/graphql/directive/include_directive.rb
graphql-0.18.6 lib/graphql/directive/include_directive.rb
graphql-0.18.5 lib/graphql/directive/include_directive.rb
graphql-0.18.4 lib/graphql/directive/include_directive.rb
graphql-0.18.3 lib/graphql/directive/include_directive.rb
graphql-0.18.2 lib/graphql/directive/include_directive.rb
graphql-0.18.1 lib/graphql/directive/include_directive.rb
graphql-0.18.0 lib/graphql/directive/include_directive.rb
graphql-0.17.2 lib/graphql/directive/include_directive.rb
graphql-0.17.1 lib/graphql/directive/include_directive.rb
graphql-0.17.0 lib/graphql/directive/include_directive.rb
graphql-0.16.1 lib/graphql/directive/include_directive.rb
graphql-0.16.0 lib/graphql/directive/include_directive.rb