- Hands-On Full-Stack Web Development with GraphQL and React
- Sebastian Grebe
- 124字
- 2021-07-02 13:20:47
Connecting to The Database
Our back end and front end can communicate, create new posts, and respond with a list of all posts while using fake data. The next step on our list will be to use a database, such as an SQL server, to serve as data storage.
We want our backend to persist data to our SQL database by using Sequelize. Our Apollo Server should use this data for queries and mutations, as needed. In order for this to happen, we must implement database models for our GraphQL entities.
This chapter will cover the following points:
- Using databases with GraphQL
- Using Sequelize in Node.js
- Writing database models
- Performing database migrations with Sequelize
- Seeding data with Sequelize
- Using Apollo together with Sequelize
推薦閱讀
- Mastering Node.js(Second Edition)
- Truffle Quick Start Guide
- 計算機網絡與數據通信
- WordPress 5 Complete
- 互聯網安全的40個智慧洞見:2014年中國互聯網安全大會文集
- React:Cross-Platform Application Development with React Native
- Practical Web Design
- 物聯網技術與應用
- 通信十年:擁抱互聯網
- 網管工具使用與技巧大全
- React Cookbook
- Python API Development Fundamentals
- 智慧城市中的物聯網技術
- NB-IoT原理和優化
- Enterprise ApplicationDevelopment with Ext JSand Spring