Class: GraphitiGql::Schema::RelayConnectionExtension

Inherits:
GraphQL::Schema::Field::ConnectionExtension
  • Object
show all
Defined in:
lib/graphiti_gql/schema.rb

Instance Method Summary collapse

Instance Method Details

#applyObject



65
66
67
# File 'lib/graphiti_gql/schema.rb', line 65

def apply
  super if options[:resource].paginatable
end

#resolve(object:, arguments:, context:) {|object, next_args, arguments| ... } ⇒ Object

Yields:

  • (object, next_args, arguments)


69
70
71
72
# File 'lib/graphiti_gql/schema.rb', line 69

def resolve(object:, arguments:, context:)
  next_args = arguments.dup
  yield(object, next_args, arguments)
end