Sha256: 62ce10f41c0f4bc523f1429f818a1ad5ed9253c942fae96391504c334f5c16ee
Contents?: true
Size: 418 Bytes
Versions: 14
Compression:
Stored size: 418 Bytes
Contents
class GraphQL::BaseType def connection_type @connection_type ||= define_connection end def edge_type @edge_type ||= GraphQL::Relay::Edge.create_type(self) end def define_connection(&block) if !@connection_type.nil? raise("#{name}'s connection type was already defined, can't redefine it!") end @connection_type = GraphQL::Relay::BaseConnection.create_type(self, &block) end end
Version data entries
14 entries across 14 versions & 1 rubygems