Sha256: e3b0b2876109f7b236e9da825ca025e63f884b68d5236fa0d571306da9ac08c3

Contents?: true

Size: 250 Bytes

Versions: 7

Compression:

Stored size: 250 Bytes

Contents

# frozen_string_literal: true
GraphQL::Introspection::OfTypeField = GraphQL::Field.define do
  name "ofType"
  introspection true
  type -> { GraphQL::Introspection::TypeType }
  resolve ->(obj, args, ctx) { obj.kind.wraps? ? obj.of_type : nil }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphql-1.7.14 lib/graphql/introspection/of_type_field.rb
graphql-1.7.13 lib/graphql/introspection/of_type_field.rb
graphql-1.7.12 lib/graphql/introspection/of_type_field.rb
graphql-1.7.11 lib/graphql/introspection/of_type_field.rb
graphql-1.7.10 lib/graphql/introspection/of_type_field.rb
graphql-1.7.9 lib/graphql/introspection/of_type_field.rb
graphql-1.7.8 lib/graphql/introspection/of_type_field.rb