Building GraphQL Applications in Laravel

Building GraphQL Applications in Laravel

45mIntermediate2022-10-06

Authors

Rasheeda Yehuza

Rasheeda Yehuza

Senior Software Engineer

Course details

GraphQL is a query language for APIs that provides a complete and understandable description of the data in your API and makes it easier to evolve APIs over time. GraphQL lets you ask for what you want in a single query by enabling clients to request their own unique data specifications, saves bandwidth, and reduces waterfall requests. In this course, Rasheeda Yehuza shows you how to set up a GraphQL in Laravel (PHP) using Lighthouse to query data. She also explains why GraphQL is important in the current age of API development and shows how to implement a GraphQL API on the users table and model that comes with Laravel.

Skills covered

LaravelBack-End Web DevelopmentFull-Stack Web DevelopmentWeb DevelopmentProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off

Concepts

Introduction

  • Build GraphQL apps in Laravel

Understanding GraphQL

  • What is GraphQL
  • GraphQL versus REST
  • Why GraphQL

Introduction to GraphQL Schemas and Types

  • The type system
  • The object types and fields
  • The query and mutation types
  • The scalar type
  • The enum type

Development Environment Setup

  • Prerequisite and development environment checklist
  • Setting up Laravel
  • Setting up a database with users
  • Setting up Lighthouse
  • A Hello World GraphQL endpoint

GraphQL Queries

  • Diving into GraphQL queries with Lighthouse
  • Querying fields in GraphQL
  • Querying with arguments
  • Querying with aliases
  • Using the Lighthouse paginate directive

GraphQL Mutations

  • Diving into GraphQL mutations with Lighthouse
  • Creating a user
  • Updating a user
  • Deleting a user

Conclusion

  • Exploring more Lighthouse and GraphQL functionalities
40,000 Toman