Build a CRUD API with Spring Boot and GraphQL
Hello everyone, today we will learn how to build CRUD API using Spring Boot, GraphQL, H2DB and Spring Data JPA. GraphQL is a specification for how to talk with an API. It's typically used over HTTP where the key conception is to POST a "query" to an HTTP endpoint, instead of hitting different HTTP endpoints for different resources. GraphQL is designed for developers of web/mobile apps to be able to make API calls to fetch precisely the data they require from their backend APIs.More Info https://graphql.org/ We have two data models: Author and Book. So each book must belong to an author and an author may have multiple books under it. So Book will have a many-to-one relationship with Author. For book and author, we will perform Create, Read, Update and Delete operations using GraphQL APIs. You can download the complete source code from our GitHub repository. CRUD GraphQL APIs: Create Author: Create Book: Update Author: Update Book: Read all Books: Read all Authors: Read ...