We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff64d01 commit f566b41Copy full SHA for f566b41
docs/3-understanding-dataLoader.md
@@ -70,8 +70,8 @@ The GraphQL execution engine will always try to execute fields in parallel in or
70
where TDbContext : DbContext
71
{
72
return descriptor.UseScopedService<TDbContext>(
73
- create: s => s.GetRequiredService<IDbContextFactory<TDbContext>>().CreateDbContext(),
74
- disposeAsync: (s, c) => c.DisposeAsync());
+ create: s => s.GetRequiredService<IDbContextFactory<TDbContext>>().CreateDbContext()/*,
+ disposeAsync: (s, c) => c.DisposeAsync()*/); // this would lead to an Error with Disposing the DBContext
75
}
76
77
0 commit comments