Summary
In this chapter, you learned about GraphQL, its advantages, and how it compares to REST. You learned how GraphQL solves over-fetching and under-fetching problems. You then learned about GraphQL’s root types – queries, mutations, and subscriptions – and how different blocks can help you design the GraphQL schema. Finally, you understood how resolvers work, how they can lead to the N+1 problem, and the solution to this problem.
Now that you know about the fundamentals of GraphQL, you can start designing GraphQL schemas. You also learned about GraphQL’s client-side queries and how to make use of aliases, fragments, and variables to resolve common problems.
In the next chapter, you will make use of the GraphQL skills you acquired in this chapter to implement GraphQL APIs.