Adding todo items
In the App
component, there's also a text input that allows the user to enter new todo items. When they're done entering the todo item, Apollo Client will need to send a mutation to the backend GraphQL server. Here's what the component code looks like:
function App() { const [addTodo] = useMutation(ADD_TODO, { refetchQueries: [ { query: GET_USER, variables: { userId: 'me', }, }, ], }); return ( <div> <section className='todoapp'> <header className=&apos...