Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Dockerized Deno GraphQL server #9

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
update breaybyiddataloader
myty committed Oct 31, 2020
commit 64d1a82dc3c8df44c8949071d9c286ff7725d0c1
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@

namespace OpenBreweryDB.API.GraphQL.Breweries.Dataloaders
{
public class BreweryByIdDataLoader : DataLoaderBase<long, Brewery>
public class BreweryByIdDataLoader : BatchDataLoader<long, Brewery>
{
private readonly IBreweryConductor _breweryConductor;

@@ -26,7 +26,7 @@ public BreweryByIdDataLoader(
_breweryConductor = breweryConductor ?? throw new ArgumentNullException(nameof(breweryConductor));
}

protected override async Task<IReadOnlyList<Result<Brewery>>> FetchAsync(
protected override async Task<IReadOnlyDictionary<long, Brewery>> LoadBatchAsync(
IReadOnlyList<long> keys,
CancellationToken cancellationToken)
{