Often referred to as a platform or programming language agnostic query language, GraphQL is a comprehensive approach to guide software engineers in building data-driven applications. In this tutorial, you will learn some of the fundamental concepts required to build a Laravel API powered by GraphQL. BY Oluyemi Olususi.
This is a shift from the conventional architecture of building REST APIs, as we will take a different approach in this tutorial. To help us explore GraphQL, we will build a bookstore API with an ability to carry out CRUD (Create, Read, Update, Delete) operations on data, in your database.
The article covers:
- Prerequisites
- Creating a new Laravel project
- Install GraphQL Laravel library
- Creating book model
- Creating a seeder file for the books table
- Building GraphQL server
- Creating a GraphQl type for the application
- Creating GraphQL queries
… and much more. All the code is explained and provided together with links to more resources. Good read!
[Read More]