变更和查询变量
现在,让我们为用户添加创建新的待办事项的能力,并将它们添加到用户的任务列表。
我们将学习以下概念:
- 创建 GraphQL 变更
- 使用
useMutation
React Hook - 捕获加载/已完成/错误状态
让我们开始吧!
Did you find this page helpful?
Start with GraphQL on Hasura for Free
Build apps and APIs 10x faster
Built-in authorization and caching
8x more performant than hand-rolled APIs
![Promo](/learn/zh/graphql/react/static/hasura-free-ff60e409244e0ea12b5a3045d1a9096b.png)
![footer illustration](https://graphql-engine-cdn.hasura.io/learn-hasura/assets/footer-img.png)