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.18 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.21 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.20 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.19 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.18 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.17 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.16 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.15 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.14 lib/graphql/directive/deprecated_directive.rb
graphql-1.10.0.pre1 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.13 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.12 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.11 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.10 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.9 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.8 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.7 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.6 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.5 lib/graphql/directive/deprecated_directive.rb
graphql-1.9.4 lib/graphql/directive/deprecated_directive.rb