In this video, Emmanuel Henri introduces and programs the initial schema and types.
- [Narrator] OK, so now that we've set up our files…and we're ready to work on the schema, let's move on…to the next video so we can finish the schema.…Alright, so let's continue working on this file,…so what I'm going to do in this particular file,…is import a few things.…So, once we actually get to work with the resolvers,…we'll import the resolvers in this file.…And I'm going to simply write that code for now,…because we're going to need it later.…And then resolvers, that's why I created the files…here, but one cool thing about VS Code is…it tells you when you're not using an import, so…you're going to see the code kind of being faded out…until you actually use the code.…
A tip that I always do when I do Javascript is to…do the import from the file first, and then…put the actual file that you need to import.…So in this case, we need to import something from…GraphQL Tools, so we also need to install GraphQL Tools.…So let's go back into our command line and do…npm install graphql-tools, plural.…And then do graphql-tools.…
Author
Released
11/15/2018- Setting up GraphQL
- Creating the initial schema and type
- Setting up simple queries
- Leveraging arguments and aliases
- Reading, updating, adding, and deleting items with GraphQL
- Posting data with mutations
Skill Level Intermediate
Duration
Views
Related Courses
-
GraphQL Essential Training
with Emmanuel Henri1h 54m Intermediate -
Learning GraphQL
with Eve Porcello52m 57s Intermediate -
GraphQL: Data Fetching with Relay
with Emmanuel Henri2h 28m Intermediate -
API Testing and Validation
with Keith Casey1h 13m Intermediate
-
Introduction
-
Replace REST with GraphQL1m 19s
-
-
1. First Steps
-
Why use GraphQL for REST?1m 35s
-
REST project introduction3m 13s
-
Setting up GraphQL4m 48s
-
Setting up the database3m 2s
-
GraphQL refresher1m 9s
-
-
2. Add Items with GraphQL
-
Finalizing the DB connection3m 39s
-
3. Read Items with GraphQL
-
Simple queries in GraphQL3m 27s
-
What are aliases and usage?2m 31s
-
Fragments basics1m 36s
-
-
4. Update Items with GraphQL
-
Overview of mutations2m 8s
-
Coding your update mutation4m 17s
-
Testing your update mutation2m 46s
-
-
5. Delete Items with GraphQL
-
Coding your delete mutation3m 23s
-
-
Conclusion
-
Next steps1m 7s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Creating the initial schema and type, part 2