Sha256: 8ece551fc15e5ed7784afc081da27863a8760ea83eb73f121aafca9491403914
Contents?: true
Size: 284 Bytes
Versions: 3
Compression:
Stored size: 284 Bytes
Contents
GraphQL::Introspection::PossibleTypesField = GraphQL::Field.new do |f, type| f.description "Types which compose this Union or Interface" f.type -> { type[GraphQL::Introspection::TypeType] } f.resolve -> (target, a, c) { target.kind.resolves? ? target.possible_types : nil } end
Version data entries
3 entries across 3 versions & 1 rubygems