Getting Started with GraphQL
In this chapter, you will learn about the fundamentals of GraphQL, including its schema definition language (SDL), queries, mutations, and subscriptions. The GraphQL API is popular in hand-held device-based apps such as mobile apps because it is fast and efficient in fetching the data and better than REST in certain cases. Therefore, it is important to learn about GraphQL. You will learn more about its comparison with REST in the Comparing GraphQL with REST section in this chapter. After completing this chapter, you will know the basics of GraphQL, including its semantics, schema design, and everything you need to develop a GraphQL-based API using Spring and Spring Boot.
We will cover the following topics in this chapter:
- Getting to know GraphQL
- Learning the fundamentals of GraphQL
- Designing a GraphQL schema
- Testing GraphQL queries and mutations
- Solving the N+1 problem