~/talk

GraphQL: change for the best

Talkat PHPKonf 2020 Online · on Saturday, 2020-12-12· [graphql, php]
links:none on file
slides:none on file

Practical recipe for running GraphQL on PHP: a handmade resolver pattern with four methods (query, createRequest, createResponse, response) that forwards arguments to application use-case assemblers, implemented on Laravel and running in production for three years across two enterprise projects. Uses webonyx/graphql-php plus schema docs, enforces a consistent result shape with codes/errors and prefixing to avoid type collisions, picks cursor or offset pagination with pageInfo, fixes file upload via ecodev multipart upload, and tackles N+1 with Doctrine + DataLoader and caching.

AI-written summary · about

  1. 0:00Introduction
  2. 2:55GraphQL with PHP setup
  3. 12:44Resolvers and schemas
  4. 17:01Pagination strategies
  5. 23:28Error handling structure
  6. 28:11Creating GraphQL endpoint
  7. 32:17File upload with GraphQL
  8. 39:02Query optimization tips
  9. 45:07N+1 query problem
  10. 52:21Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.