Closed Dwipraj closed 1 month ago
I'm experiencing this same behavior. Any word on it? It exists in version 12.5.0 as well as 12.4.1.
I am still experiencing this issue on 12.7.0 as well. It would be nice to have an update around this.
Same issue on tracks query mentioned in step 6 (https://github.com/ChilliCream/graphql-workshop/blob/master/docs/6-adding-complex-filter-capabilities.md#add-paging-to-your-lists) using v 12.7.0.
For me too removing the disposeAsync in the UseDbContext middleware solves the issue. Any updates on what is the best way to approach?
Thanks
Same issue on tracks query mentioned in step 6 (https://github.com/ChilliCream/graphql-workshop/blob/master/docs/6-adding-complex-filter-capabilities.md#add-paging-to-your-lists) using v 12.7.0.
For me too removing the disposeAsync in the UseDbContext middleware solves the issue. Any updates on what is the best way to approach?
Thanks
You got any other solution except removing disposeAsync?
Same problem here. Removing disposeAsync "fixes" the problem so thanks for that workaround.
Earlier I tried to fix it by using RegisterDbContext() from HotChocolate.Data.EntityFramework (cf. article https://chillicream.com/docs/hotchocolate/integrations/entity-framework) but so far I didn't manage to get it up and running. I'm not sure what to do in the type resolvers and the dataloaders. Also, do we still need to use UseApplicationDbContextAttribute? It would be great if the workshop could be updated using this technique!
I know this is an old post, but removing [UseApplicationDbContext]
from the GetTracks
method works
I'm closing this issue as outdated, as we have an updated workshop on the main
branch, for Hot Chocolate 14.
After upgrading Session #6's HotChocolate.AspNetCore and HotChocolate.Data to version 12.4.1 running
gives error
But, removing
disposeAsync: (s, c) => c.DisposeAsync()
argument fromdescriptor.UseScopedService
in ObjectFieldDescriptorExtensions class's UseDbContext method resolved the error.So, my question is that Is explicitly adding disposeAsync attribute necessary for disposing of the DbContext?