Method: GraphQL::Schema::Resolver::HasPayloadType#type
- Defined in:
- lib/graphql/schema/resolver/has_payload_type.rb
#type(new_type = nil, null: nil) ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/graphql/schema/resolver/has_payload_type.rb', line 23 def type(new_type = nil, null: nil) if new_type payload_type(new_type) if !null.nil? self.null(null) end else super() end end |