Hello together,
probably a simple/silly question but how to connect AMPHP Async + deferred/dataloader?
I provided a example where the function "call" get used in the revolvers:
resolve' => function () {
return call(function () {
....
});
});
How can this be written with the "data loader pattern":
resolve' => function () {
// add id to a data-loader
return call(function () {
// fetch in bulk from data-loader
});
});
Currently the callback get executed immediately (not like GraphQL\Deferred which waited for all resolvers)
Hello together,
probably a simple/silly question but how to connect AMPHP Async + deferred/dataloader?
I provided a example where the function "call" get used in the revolvers:
How can this be written with the "data loader pattern":
Currently the callback get executed immediately (not like GraphQL\Deferred which waited for all resolvers)