Method: GraphQL::BaseType#define_connection
- Defined in:
- lib/graphql/base_type.rb
#define_connection(**kwargs, &block) ⇒ GraphQL::ObjectType
Define a custom connection type for this object type
184 185 186 |
# File 'lib/graphql/base_type.rb', line 184 def define_connection(**kwargs, &block) GraphQL::Relay::ConnectionType.create_type(self, **kwargs, &block) end |