Building the Bookstore GraphQL API with Hot Chocolate 16: Schema, EF Core Integration and Mutations
The safe way to connect EF Core in Hot Chocolate 16 is to give every resolver its own DbContext from a pooled factory and to choose deliberately every field, filter and error the schema exposes. We show the random failures of a shared DbContext, the SQL behind projection and sorting, a purchase price leaking from the entity, typed errors with mutation conventions, and onError, all with real output.
14 Nov 2026
·
15 min
·
7