In this video, Emmanuel Henri explains the basics of mutations and the code related to it. Then, he gets started by updating the schema to use mutations.
- [Instructor] In GraphQL you use query…to find information and get specific data…from our databases.…But what about when you need to update, insert…or delete data on your database?…That's when mutations comes into play.…In simplest terms, mutations are when you mutate…or change your data.…So if you want to follow along go to…graphql.org/graphql-js/mutations-and-input-types…and then you'll have a little bit more…verbals about mutations and input types…but scroll down a little bit…further until you see these examples.…
So, as you can see you have the inputs,…you have the types and the queries and then the mutations.…So we set in our schema like queries,…what we expect to be past the mutation…and for this we can use also another object…in our schema called input.…So finally, we can add these extra functions…to our root resolvers to execute what we define…in our schema.…So let's go ahead and code this to demonstrate.…So we'll first update our schema in this video…and then in the next we'll work on the resolvers.…So let's go into visual code.…
- 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.