In this chapter, we have investigated the benefits that GraphQL can bring to us by viewing it as an alternative to REST services for retrieving and updating data. We investigated setting up Apollo as a server-side GraphQL engine and added Apollo to an Angular client to interact with the server, as well as look at the specialist GQL query language. In order to leverage the full power of TypeScript, we brought in the type-graphql package to simplify the creation of GraphQL schemas and resolvers.
Building on our experiences from the previous chapter, we saw how we could begin to build a reusable MongoDB data access layer; while there is some way to go with this, we have made a good start with it, leaving room to remove application constraints such as needing to use an Id to find records.
This chapter also introduced us to Angular routing to serve up different views, depending...