Class: GraphQL::BaseType

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/relay/monkey_patches/base_type.rb

Instance Method Summary collapse

Instance Method Details

#connection_typeObject



2
3
4
# File 'lib/graphql/relay/monkey_patches/base_type.rb', line 2

def connection_type
  @connection_type ||= GraphQL::Relay::BaseConnection.create_type(self)
end

#edge_typeObject



6
7
8
# File 'lib/graphql/relay/monkey_patches/base_type.rb', line 6

def edge_type
  @edge_type ||= GraphQL::Relay::Edge.create_type(self)
end