Sha256: 41662a4e3bb1404e0b9d00e899b99c22c053dc20e37b33c4a6b680fa58505310

Contents?: true

Size: 645 Bytes

Versions: 11

Compression:

Stored size: 645 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, field: GraphQL::Introspection::ArgumentsField
  field :deprecationReason, types.String,  "Why this field was deprecated", property: :deprecation_reason
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
graphql-0.9.4 lib/graphql/introspection/field_type.rb
graphql-0.9.3 lib/graphql/introspection/field_type.rb
graphql-0.9.2 lib/graphql/introspection/field_type.rb
graphql-0.8.1 lib/graphql/introspection/field_type.rb
graphql-0.8.0 lib/graphql/introspection/field_type.rb
graphql-0.7.1 lib/graphql/introspection/field_type.rb
graphql-0.7.0 lib/graphql/introspection/field_type.rb
graphql-0.6.2 lib/graphql/introspection/field_type.rb
graphql-0.6.1 lib/graphql/introspection/field_type.rb
graphql-0.6.0 lib/graphql/introspection/field_type.rb
graphql-0.5.0 lib/graph_ql/introspection/field_type.rb