Building a GraphQL API with Laravel
summary
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
chapters (31)
- 0:00Introduction
- 1:00What is GraphQL
- 1:40GraphQL Schema
- 4:30GraphQL Functions
- 9:55GraphQL Playground
- 10:40Adjusting GraphQL Queries
- 12:45Logging in
- 13:45Mutation
- 14:45Testing
- 15:25Authentication
- 16:00Logging Out
- 16:45Guard Directive
- 18:00List Products
- 19:25Add Product
- 20:00Code
- 20:40Show Cart
- 22:00GraphQL Tests
- 22:45Test Case
- 23:25Mutation Test
- 24:15Purchase Products
- 25:35Mutations
- 26:05Complex Mutations
- 27:55GraphQL Exceptions
- 28:45GraphQL Explicit Details
- 29:50Data Keys
- 31:15Summary
- 32:45Resources
- 33:20Tutorial Series
- 33:50Apollo
- 34:20Nightlands
- 34:55Lighthouse Documentation
related talks
38mVue + GraphQL
53mGraphQL: Improvements You Can Make Today
42mPerformant APIs with GraphQL and PHP
59mGoodbye REST; Hello GraphQL
31mEmber and GraphQL in Practice
36mGraphQL on Rails - Creating Living APIs for a Data-hungry World
08mGoing From Zero to Building Multi-Region GraphQL Applications
41mIntroduction to GraphQL
