- [Instructor] We're actually passing everything…into the table.…So now the table connects into remove,…remove connects into add.…Now what I need to do is I need to implement…the actual function for deleting all of these widgets…that in fact have been selected.…So we'll create another component…called delete selected widgets mutation.…So new file.…Delete selected widgets mutation.js.…And then once again I'm going to come over to here…and I'm going to grab my imports…and copy those into here.…
There we go.…Now the child of this one is actually going to be…the add selected widget ID mutation.…So I can come into here and say import…add selected widget ID mutation…from dot slash…add selected widget ID mutation.…Then I'm going to come into here and actually write my query…for this, so we'll say export const…and we'll say delete selected…widgets mutation equal to GQL.…
Back ticks.…Now in order to actually do this mutation…we need to know what the actual end point is on our server.…So we'll say cause this is not a client side operation…
Skill Level Advanced
GraphQL Essential Training (2018)with Emmanuel Henri1h 54m Intermediate
React.js Essential Training (2018)with Eve Porcello1h 25m Intermediate
1. Apollo Client State with React
- 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.