Class: GraphqlMigrateExecution::ResolveEach
- Defined in:
- lib/graphql_migrate_execution/resolve_each.rb
Overview
These can be converted with ‘resolve_each:`. Dataloader was not detected in these resolver methods.
Constant Summary
Constants inherited from Strategy
Instance Method Summary collapse
Methods inherited from Strategy
#initialize, prefix_if_necessary, #run, strategy_name
Constructor Details
This class inherits a constructor from GraphqlMigrateExecution::Strategy
Instance Method Details
#cleanup(field_definition) ⇒ Object
12 13 14 15 |
# File 'lib/graphql_migrate_execution/resolve_each.rb', line 12 def cleanup(field_definition) remove_field_keyword(field_definition, :resolver_method) remove_resolver_method(field_definition) end |
#migrate(field_definition) ⇒ Object
7 8 9 10 |
# File 'lib/graphql_migrate_execution/resolve_each.rb', line 7 def migrate(field_definition) inject_resolve_keyword(field_definition, :resolve_each) replace_resolver_method(field_definition, "object, context") end |