GraphQL is right in front of us, let's do it, with Symfony
summary
Argues GraphQL fixes common REST problems like N+1 fetches by letting clients request exactly the fields they need and by resolving data with PHP resolvers and DataLoader-style batching; demonstrates a working Star Wars demo built with webonyx/graphql-php and the OverblogGraphQLBundle for Symfony, including mutations, runtime and syntax error handling, introspection and GraphiQL, and Relay cursor pagination (edges, cursors, totalCount, pageInfo). Shows depth and complexity limits, resolver-level caching, and that the bundle integrates cleanly and actually returns usable JSON responses.
AI-written summary · about
chapters (37)
- 0:00Intro
- 0:51Fetching data
- 2:35Custom Endpoints
- 2:56Graphical Approach
- 5:25pagination
- 7:17pagination in query
- 8:24Cursor
- 9:10Global Scope
- 11:55IDS
- 12:38Mutations
- 13:58Bear example
- 15:11Queries as strings
- 16:22Simple syntax errors
- 16:47Runtime errors
- 19:10Defining objects
- 21:26Declaring interfaces
- 22:55Communicating with Symphony
- 26:10Human Resolver
- 27:20Human Repository
- 28:14User Repository
- 28:37Errors
- 29:25PHP versioning
- 29:52Deprecation
- 30:46Self Discoverable
- 32:21Self Documentation
- 35:11Microphone
- 35:53Limit Depth
- 36:16Limit Complexity
- 37:09Increase Complexity
- 37:49Security
- 38:25Visibility
- 38:58Object level
- 39:40Filtering based on fields
- 41:51GraphQL Swagger
- 42:02Visual Tools
- 42:32Thank you
- 42:57Questions
related talks
42mPerformant APIs with GraphQL and PHP
46mIntroduction to GraphQL
32mHow to get started and build something with GraphQL
46mGraphQL 101 - Stop RESTing, Start Querying
01h 00mGraphQL - A query language to empower your API consumers
53mGraphQL: Improvements You Can Make Today
56mREST or GraphQL? Examples with Symfony and API Platform
33mGraphQL Will Do To REST What JSON Did To XML
