Sha256: a49888d0a1f7ed16c6b83f6d0522ae95ee0bf450e1fe2c30dec97e58c4b9e7cf

Contents?: true

Size: 644 Bytes

Versions: 15

Compression:

Stored size: 644 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

15 entries across 15 versions & 1 rubygems

Version Path
graphql-0.12.1 lib/graphql/introspection/field_type.rb
graphql-0.12.0 lib/graphql/introspection/field_type.rb
graphql-0.11.1 lib/graphql/introspection/field_type.rb
graphql-0.11.0 lib/graphql/introspection/field_type.rb
graphql-0.10.9 lib/graphql/introspection/field_type.rb
graphql-0.10.8 lib/graphql/introspection/field_type.rb
graphql-0.10.7 lib/graphql/introspection/field_type.rb
graphql-0.10.6 lib/graphql/introspection/field_type.rb
graphql-0.10.5 lib/graphql/introspection/field_type.rb
graphql-0.10.4 lib/graphql/introspection/field_type.rb
graphql-0.10.3 lib/graphql/introspection/field_type.rb
graphql-0.10.2 lib/graphql/introspection/field_type.rb
graphql-0.10.1 lib/graphql/introspection/field_type.rb
graphql-0.10.0 lib/graphql/introspection/field_type.rb
graphql-0.9.5 lib/graphql/introspection/field_type.rb