Sha256: 46283b67aefe661fda4a5c9134e427abfb601b1dc6c081f576b7b9c06890d402

Contents?: true

Size: 199 Bytes

Versions: 10

Compression:

Stored size: 199 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

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