Class: GraphQL::BaseType

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql_includable.rb

Instance Method Summary collapse

Instance Method Details

#define_connection_with_fetched_edge(**kwargs, &block) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/graphql_includable.rb', line 28

def define_connection_with_fetched_edge(**kwargs, &block)
  GraphQLIncludable::Relay::EdgeWithNodeConnectionType.create_type(
    self,
    **kwargs,
    &block
  )
end

#define_includable_connection(**kwargs, &block) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/graphql_includable.rb', line 19

def define_includable_connection(**kwargs, &block)
  warn '[DEPRECATION] `define_includable_connection` is deprecated.  Please use `define_connection_with_fetched_edge` instead.'
  define_connection(
    edge_class: GraphQLIncludable::Edge,
    **kwargs,
    &block
  )
end