Let REST Do Rest: Deep Dive In GraphQL With Django
summary
Django + PostgreSQL APIs implemented with Graphene (code-first) and resolvers produce a GraphQL schema that maps Django models to types; create/edit mutations and list queries power a blog app and appear in GraphiQL auto-docs. The N+1 problem is diagnosed (one SQL per author when fetching author→blogs) and fixed with DataLoader batching, collapsing thousands of queries into a single IN query (select * from blog where author_id in (...)), which improves performance significantly. Versioning uses schema evolution and deprecation of fields.
AI-written summary · about
chapters (22)
- 0:00Start
- 4:49Cons about the Rest
- 5:31Over Fetching
- 6:29Under Fetching
- 7:25Graphql
- 7:38Benefit of Using Graphql
- 11:24Concepts of Graphql
- 13:41Query
- 14:41How To Add or Edit Data in the Server
- 16:35Code First Approach
- 18:06Object Type
- 22:00Implementing the Graphql Apis
- 22:10File Structure
- 24:15Writing Queries
- 25:30How To Add a Blog
- 27:43Raw Sql Queries
- 29:17Data Loaders
- 33:57Versioning
- 34:22Rest Versioning
- 34:51Versioning of Graphql
- 35:44Divide the Schema
- 37:32Authentication
