Sha256: a1fde966a27ade502d07dc9344e8f775243e2fc0f6b276d138e9c3cd98da0ff7
Contents?: true
Size: 597 Bytes
Versions: 4
Compression:
Stored size: 597 Bytes
Contents
class GraphQL::BaseType # Get the default connection type for this object type def connection_type @connection_type ||= define_connection end # Define a custom connection type for this object type def define_connection(**kwargs, &block) GraphQL::Relay::ConnectionType.create_type(self, **kwargs, &block) end # Get the default edge type for this object type def edge_type @edge_type ||= define_edge end # Define a custom edge type for this object type def define_edge(**kwargs, &block) GraphQL::Relay::EdgeType.create_type(self, **kwargs, &block) end end
Version data entries
4 entries across 4 versions & 1 rubygems