lib/graphiti_gql/schema/fields/index.rb in graphiti_gql-0.2.32 vs lib/graphiti_gql/schema/fields/index.rb in graphiti_gql-0.2.33
- old
+ new
@@ -10,11 +10,11 @@
resource = @registered[:resource]
field = query.field resource.graphql_entrypoint,
@registered[:type].connection_type,
null: false,
connection: false,
- extensions: [RelayConnectionExtension],
extras: [:lookahead]
+ field.extension(RelayConnectionExtension, resource: resource)
ListArguments.new(resource).apply(field)
query.define_method name do |**arguments|
params = Util.params_from_args(arguments)
proxy = resource.all(params)
ResponseShim.new(proxy.data, proxy)
\ No newline at end of file