In this video, Emmanuel Henri demonstrates how to do the GraphQL setup and provides many tips along the way.
- [Instructor] Before we continue…and as we migrate the code,…I strongly advise against doing npm-start, unless I do it,…as the code will most likely be missing elements…and not work.…For example, if you run it right now,…it won't work as MongoDB hasn't been installed yet.…Let's go ahead and set up GraphQL…inside of our example application.…The first thing you want to do,…is go back to that example or sample application…and then let's go into the package.json file.…What we first need to do is remove one package.…
We need to remove body-parser.…We're not going to use that anymore.…Then we need to update these packages…and then install two new packages.…Let's save the package.json file…and you want to make sure you do save it…because when you install the new packages…there's going to be conflicts with your package.json file…if you don't.…Let's go ahead and bring up the terminal.…Click on View, Terminal.…Let me clear that up.…Then let's go ahead and do an npm install…and first we'll reinstall express mongoose nodemon…
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 Advanced
Duration
Views
Related Courses
-
Learning GraphQL
with Eve Porcello52m 57s Intermediate -
API Testing and Validation
with Keith Casey1h 13m Advanced -
GraphQL: Data Fetching with Relay
with Emmanuel Henri2h 28m Advanced -
GraphQL Essential Training (2018)
with Emmanuel Henri1h 54m 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: Setting up GraphQL