Sha256: 69a60c8f2ee04f47ba413bdbcac52e84253186453ca9ccd78c297b81ae66b151

Contents?: true

Size: 602 Bytes

Versions: 10

Compression:

Stored size: 602 Bytes

Contents

GraphQL::Introspection::FieldType = GraphQL::ObjectType.define do
  name "__Field"
  description "Object and Interface types are described by a list of Fields, each of which has "\
              "a name, potentially a list of arguments, and a return type."
  field :name, !types.String
  field :description, types.String
  field :args, GraphQL::Introspection::ArgumentsField
  field :type, !GraphQL::Introspection::TypeType
  field :isDeprecated, !types.Boolean do
    resolve ->(obj, a, c) { !!obj.deprecation_reason }
  end
  field :deprecationReason, types.String, property: :deprecation_reason
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
graphql-1.2.6 lib/graphql/introspection/field_type.rb
graphql-1.2.5 lib/graphql/introspection/field_type.rb
graphql-1.2.4 lib/graphql/introspection/field_type.rb
graphql-1.2.3 lib/graphql/introspection/field_type.rb
graphql-1.2.2 lib/graphql/introspection/field_type.rb
graphql-1.2.1 lib/graphql/introspection/field_type.rb
graphql-1.2.0 lib/graphql/introspection/field_type.rb
graphql-1.1.0 lib/graphql/introspection/field_type.rb
graphql-1.0.0 lib/graphql/introspection/field_type.rb
graphql-0.19.4 lib/graphql/introspection/field_type.rb