Summary
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access