In this video Emmanuel Henri installs all the dependencies and adds all the necessary code for using SQL with GraphQL.
- [Instructor] Now that we have Mongo set up,…let's add a second database and install SQLite.…So, the first thing we want to do…is install the few things inside of your package.json.…So, good inside of package.json.…Okay, so let's install the few things,…so npm install --save…and we want to install casual,…and this is how we're going to get some fake data.…And then we want to install lodash and sequelize,…and finally, sqlite3, like so.…
Okay.…And now what we want to do is get inside of our dbConnectors…'cause now we're going to create a connection to SQLite.…And we're going to do this by first importing,…import Sequelize, like so, from 'sequelize'.…Then we're going to import lodash,…and when you import lodash, this is the common practice…where you do an underscore like that.…And we're going to import casual from 'casual'.…
Okay, so now that we have these installed,…let's scroll after our Mongo stuff right here…and let's create a section that I will comment SQL.…So, if you see any problems with SQL,…you know that you need to go into that code here.…
- Basic GraphQL schema
- Object types and fields
- Role of the resolver in GraphQL
- Scalar and enumeration types
- Using GraphQL tools
- Setting up persistence
- Adding new items with mutations
- Updating and deleting items with mutations
- Queries with arguments, aliases, and fragments
Skill Level Intermediate
GraphQL: Data Fetching with Relaywith Emmanuel Henri2h 28m Intermediate
1. Setup and Introduction
2. Types and Schemas
3. Setting Up Persistence
5. Queries in Depth
Next steps1m 8s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.