~/talk

Building a GraphQL API with Laravel

Talkat Laracon EU Online 2021 · 2021-01-18..01-22· [php, graphql]
slides:none on file

Builds a schema-first GraphQL server with Lighthouse and demos queries and mutations from the Laravel GraphQL Playground. Implements an e‑shop: list products, add/remove items in a session cart, login/logout, and a purchase mutation that creates an order (demo shows the 26th order) and empties the cart. Shows pagination (default count 10), custom exception for empty cart, and simple test suite in a graphql tests directory. Notes single endpoint semantics (200 + error field), mentions file uploads and apollo as a client.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00What is GraphQL
  3. 1:40GraphQL Schema
  4. 4:30GraphQL Functions
  5. 9:55GraphQL Playground
  6. 10:40Adjusting GraphQL Queries
  7. 12:45Logging in
  8. 13:45Mutation
  9. 14:45Testing
  10. 15:25Authentication
  11. 16:00Logging Out
  12. 16:45Guard Directive
  13. 18:00List Products
  14. 19:25Add Product
  15. 20:00Code
  16. 20:40Show Cart
  17. 22:00GraphQL Tests
  18. 22:45Test Case
  19. 23:25Mutation Test
  20. 24:15Purchase Products
  21. 25:35Mutations
  22. 26:05Complex Mutations
  23. 27:55GraphQL Exceptions
  24. 28:45GraphQL Explicit Details
  25. 29:50Data Keys
  26. 31:15Summary
  27. 32:45Resources
  28. 33:20Tutorial Series
  29. 33:50Apollo
  30. 34:20Nightlands
  31. 34:55Lighthouse Documentation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.