GraphQL is right in front of us, let's do it!
summary
Shows a working GraphQL stack in PHP using webonyx/graphql-php and OverblogGraphQLBundle on Symfony, with concrete code for types, resolvers and schema compilation; demonstrates Relay-style cursor pagination (base64 cursors), mutations that return updated averages, introspection-driven docs and GraphiQL, and practical controls: depth and complexity limits plus field-level auth. Explains avoiding N+1 with DataLoader-style batching, covers deprecation/versioning, OAuth2/JWT auth patterns, and cites a production API keeping responses under ~7ms.
AI-written summary · about
chapters (18)
- 0:00Introduction and setup
- 1:04REST API limitations and N+1 problem
- 3:51GraphQL query basics and benefits
- 5:59Pagination with Relay-style connections
- 12:22Mutations for data creation
- 15:09Type safety and introspection
- 17:16PHP implementation with Webonyx GraphQL
- 19:25Symfony bundle for GraphQL
- 21:29Defining schema and resolvers
- 26:00Error handling and partial responses
- 28:30Versioning and deprecation
- 31:38Live API documentation
- 34:46Query depth and complexity limits
- 37:18Security and access control
- 38:41Optimizing database queries
- 40:06Tooling and IDE support
- 41:52Summary and closing
- 42:15Q&A on authentication and performance
