There are many different ways to communicate data backward and forward from the client to the server. In this chapter, we are going to look at how we can use GraphQL to pick data from a server, and then send and mutate data back from an Angular client. We will also look at how we can leverage calculated values from GraphQL. Building on the content of the previous chapter, we will once again be using Angular Material for our user interface to see how we can work with Angular routing to serve up different content.
The following topics will be covered in this chapter:
- Understanding the GraphQL-to-REST relationship
- Creating a reusable database class
- Prefilling data and using singletons
- Creating a GraphQL schema
- Setting up GraphQL types using type-graphql
- Creating a GraphQL resolver with queries and mutations
- Using Apollo Server as our application...