Skip to Main Content
Full Stack Development with Angular and GraphQL
book

Full Stack Development with Angular and GraphQL

by Ahmed Bouchefra
March 2022
Intermediate to advanced content levelIntermediate to advanced
390 pages
6h 43m
English
Packt Publishing
Content preview from Full Stack Development with Angular and GraphQL

Chapter 3: Connecting the Database with TypeORM

In the last chapter, we learned how to set up a Node.js server with GraphQL support to implement a backend application. Additionally, we explained how to install Express.js and configure it with TypeScript and GraphQL. We used mocking to provide a working GraphQL server with Apollo Server before implementing the resolvers that should actually be responsible for fetching and adding data.

In addition, we set up Cross-Origin Resource Sharing (CORS) and used Apollo Studio to communicate with our GraphQL server.

In this chapter, we'll look at how to connect a MySQL database to our application using TypeORM, as well as how to create resolvers to get and save data from the database.

Now that we've built ...

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.
Start your free trial

You might also like

Accelerating Angular Development with Ivy

Accelerating Angular Development with Ivy

Lars Gyrup Brink Nielsen, Mateus Carniatto, Jacob Andresen
Building Large-Scale Web Applications with Angular

Building Large-Scale Web Applications with Angular

Chandermani Arora, Kevin Hennessy, Christoffer Noring, Doguhan Uluca

Publisher Resources

ISBN: 9781800202467Supplemental Content