Sha256: 67fc634a4d7859249c87d4096aa5d7135a8f084d7e4c8f0b7c458c6785cf1f2c

Contents?: true

Size: 200 Bytes

Versions: 4

Compression:

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

4 entries across 4 versions & 1 rubygems

Version Path
graphql-0.19.3 lib/graphql/introspection/of_type_field.rb
graphql-0.19.2 lib/graphql/introspection/of_type_field.rb
graphql-0.19.1 lib/graphql/introspection/of_type_field.rb
graphql-0.19.0 lib/graphql/introspection/of_type_field.rb