In this video, Emmanuel Henri gives a brief overview of Relay, then goes through the setup of a basic GraphQL setup using NPM, Express, and GraphQL libraries. Finally he codes the first server, runs GraphiQL, and does a first query.
- [Instructor] Okay so let's go ahead…and get our graphQL server setup and running.…So the first thing I want you to do…is stop the current running server…by doing control C.…And then we'll start adding a few other things.…So do MPM install or yarn add.…Okay we'll do yarn add.…GraphQL.…And express…graphQL.…Like so.…Perfect.…
So then what we need to do is set up our first Schema.…So I'll explain a little bit further…what a Schema is when we start doing types in more details.…But for now let's just follow along with what I'm doing.…So go into your folder friends…and create a brand new file called Schemajs,…dot js.…Like so.…And inside of it you will import…curly braces build Schema…from graphQL.…
So what we're doing here is we're going to build…a new Schema from the one that we'll be creating here.…So create a variable called Schema.…And then we'll use the map to build Schema.…Like so.…And then use that particular character like so.…And we'll type our new Schema so.…We'll create a type of query.…And give that type hello of string.…
- Setting up GraphQL
- Running queries
- Updating schema and solvers
- Adding data
- Adding Relay entry components
- Coding GraphQL fragments
Skill Level Intermediate
Node.js: Build Your First Microservicewith Daniel Khan2h 9m Intermediate
1. Introduction and Setup
2. GraphQL Development
3. Relay Setup
4. React Integration
Next steps1m 12s
- 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.