Sha256: 2c173a5969d121d1efaface38581f4de0c838bc9407d6acf885102e9fce501b0

Contents?: true

Size: 635 Bytes

Versions: 19

Compression:

Stored size: 635 Bytes

Contents

GraphQL::Introspection::FieldType = GraphQL::ObjectType.define do
  name "__Field"
  description "Field on a GraphQL type"
  field :name, !types.String, "The name for accessing this field"
  field :description, types.String, "The description of this field"
  field :type, !GraphQL::Introspection::TypeType, "The return type of this field"
  field :isDeprecated, !types.Boolean, "Is this field deprecated?" do
    resolve -> (obj, a, c) { !!obj.deprecation_reason }
  end
  field :args, GraphQL::Introspection::ArgumentsField
  field :deprecationReason, types.String,  "Why this field was deprecated", property: :deprecation_reason
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
graphql-0.18.15 lib/graphql/introspection/field_type.rb
graphql-0.18.14 lib/graphql/introspection/field_type.rb
graphql-0.18.13 lib/graphql/introspection/field_type.rb
graphql-0.18.12 lib/graphql/introspection/field_type.rb
graphql-0.18.11 lib/graphql/introspection/field_type.rb
graphql-0.18.10 lib/graphql/introspection/field_type.rb
graphql-0.18.9 lib/graphql/introspection/field_type.rb
graphql-0.18.8 lib/graphql/introspection/field_type.rb
graphql-0.18.7 lib/graphql/introspection/field_type.rb
graphql-0.18.6 lib/graphql/introspection/field_type.rb
graphql-0.18.5 lib/graphql/introspection/field_type.rb
graphql-0.18.4 lib/graphql/introspection/field_type.rb
graphql-0.18.3 lib/graphql/introspection/field_type.rb
graphql-0.18.2 lib/graphql/introspection/field_type.rb
graphql-0.18.1 lib/graphql/introspection/field_type.rb
graphql-0.18.0 lib/graphql/introspection/field_type.rb
graphql-0.17.2 lib/graphql/introspection/field_type.rb
graphql-0.17.1 lib/graphql/introspection/field_type.rb
graphql-0.17.0 lib/graphql/introspection/field_type.rb