Chapter 2: Setting Up GraphQL with Express.js
The basic setup and prototype for our frontend are now complete. Now, we need to get our GraphQL server running to begin implementing the backend. Apollo and Express.js are going to be used to build the foundation of our backend.
This chapter will explain the installation process for Express.js, as well as the configuration for our GraphQL endpoint. We will quickly go through all the essential features of Express.js and the debugging tools for our backend.
This chapter covers the following topics:
- Express.js installation and explanation
- Routing in Express.js
- Middleware in Express.js
- Binding Apollo Server to a GraphQL endpoint
- Sending our first GraphQL requests
- Backend debugging and logging
Technical ...
Get Full-Stack Web Development with GraphQL and React - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.