Sha256: 49c2df8d69f8a1775fcd39c9c9a299ade5e5ec221d1b5f5216dd58c18d6fe0d2

Contents?: true

Size: 368 Bytes

Versions: 32

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module Introspection
    TypeByNameField = GraphQL::Field.define do
      name("__type")
      description("A type in the GraphQL system")
      type(GraphQL::Introspection::TypeType)
      argument :name, !types.String
      resolve ->(o, args, ctx) {
        ctx.warden.get_type(args["name"])
      }
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
graphql-1.8.0.pre2 lib/graphql/introspection/type_by_name_field.rb
graphql-1.7.7 lib/graphql/introspection/type_by_name_field.rb
graphql-1.8.0.pre1 lib/graphql/introspection/type_by_name_field.rb
graphql-1.7.6 lib/graphql/introspection/type_by_name_field.rb
graphql-1.7.5 lib/graphql/introspection/type_by_name_field.rb
graphql-1.7.4 lib/graphql/introspection/type_by_name_field.rb
graphql-1.7.3 lib/graphql/introspection/type_by_name_field.rb
graphql-1.7.2 lib/graphql/introspection/type_by_name_field.rb
graphql-1.7.1 lib/graphql/introspection/type_by_name_field.rb
graphql-1.7.0 lib/graphql/introspection/type_by_name_field.rb
graphql-1.6.8 lib/graphql/introspection/type_by_name_field.rb
graphql-1.6.7 lib/graphql/introspection/type_by_name_field.rb
graphql-1.6.6 lib/graphql/introspection/type_by_name_field.rb
graphql-1.6.5 lib/graphql/introspection/type_by_name_field.rb
graphql-1.6.4 lib/graphql/introspection/type_by_name_field.rb
graphql-1.5.15 lib/graphql/introspection/type_by_name_field.rb
graphql-1.6.3 lib/graphql/introspection/type_by_name_field.rb
graphql-1.6.2 lib/graphql/introspection/type_by_name_field.rb
graphql-1.6.1 lib/graphql/introspection/type_by_name_field.rb
graphql-1.6.0 lib/graphql/introspection/type_by_name_field.rb