Skip to content

Commit f566b41

Browse files
authored
Update 3-understanding-dataLoader.md (#93)
Comment out the disposing to avoid Issues
1 parent ff64d01 commit f566b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/3-understanding-dataLoader.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ The GraphQL execution engine will always try to execute fields in parallel in or
7070
where TDbContext : DbContext
7171
{
7272
return descriptor.UseScopedService<TDbContext>(
73-
create: s => s.GetRequiredService<IDbContextFactory<TDbContext>>().CreateDbContext(),
74-
disposeAsync: (s, c) => c.DisposeAsync());
73+
create: s => s.GetRequiredService<IDbContextFactory<TDbContext>>().CreateDbContext()/*,
74+
disposeAsync: (s, c) => c.DisposeAsync()*/); // this would lead to an Error with Disposing the DBContext
7575
}
7676
}
7777
}

0 commit comments

Comments
 (0)