a2bea9b492
Fixes https://github.com/vercel/next.js/issues/16550 Add a graphql mutation operation in this example. The changes are: 1. Define mutation in schema `type-defs.graphqls` 2. Add mutation to `viewer.graphql ` that compiled to typescript code. 3. Add mutation resolver in `resolvers.ts` 4. [UI] add a input box and button to submit mutation request to change name. screenshot of change ![mutation_example](https://user-images.githubusercontent.com/1462027/91797123-5ffc4e00-ec54-11ea-910b-3ddb399b42f0.gif) |
||
---|---|---|
.. | ||
api | ||
_app.tsx | ||
about.tsx | ||
index.tsx |