Sha256: ee6f88799249dc0a00b1ce69cfe6e2cd006ed9b9cc0c72dd1b4bc8dceff56c04

Contents?: true

Size: 670 Bytes

Versions: 101

Compression:

Stored size: 670 Bytes

Contents

# frozen_string_literal: true
GraphQL::Directive::DeprecatedDirective = GraphQL::Directive.define do
  name "deprecated"
  description "Marks an element of a GraphQL schema as no longer supported."
  locations([GraphQL::Directive::FIELD_DEFINITION, GraphQL::Directive::ENUM_VALUE])

  reason_description = "Explains why this element was deprecated, usually also including a "\
    "suggestion for how to access supported similar data. Formatted "\
    "in [Markdown](https://daringfireball.net/projects/markdown/)."

  argument :reason, GraphQL::STRING_TYPE, reason_description, default_value: GraphQL::Directive::DEFAULT_DEPRECATION_REASON
  default_directive true
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
graphql-1.8.0.pre3 lib/graphql/directive/deprecated_directive.rb
graphql-1.7.8 lib/graphql/directive/deprecated_directive.rb
graphql-1.8.0.pre2 lib/graphql/directive/deprecated_directive.rb
graphql-1.7.7 lib/graphql/directive/deprecated_directive.rb
graphql-1.8.0.pre1 lib/graphql/directive/deprecated_directive.rb
graphql-1.7.6 lib/graphql/directive/deprecated_directive.rb
graphql-1.7.5 lib/graphql/directive/deprecated_directive.rb
graphql-1.7.4 lib/graphql/directive/deprecated_directive.rb
graphql-1.7.3 lib/graphql/directive/deprecated_directive.rb
graphql-1.7.2 lib/graphql/directive/deprecated_directive.rb
graphql-1.7.1 lib/graphql/directive/deprecated_directive.rb
graphql-1.7.0 lib/graphql/directive/deprecated_directive.rb
graphql-1.6.8 lib/graphql/directive/deprecated_directive.rb
graphql-1.6.7 lib/graphql/directive/deprecated_directive.rb
graphql-1.6.6 lib/graphql/directive/deprecated_directive.rb
graphql-1.6.5 lib/graphql/directive/deprecated_directive.rb
graphql-1.6.4 lib/graphql/directive/deprecated_directive.rb
graphql-1.5.15 lib/graphql/directive/deprecated_directive.rb
graphql-1.6.3 lib/graphql/directive/deprecated_directive.rb
graphql-1.6.2 lib/graphql/directive/deprecated_directive.rb