Sign up for Hasura Newsletter
Loading...

变更和查询变量

现在,让我们为用户添加创建新的待办事项的能力,并将它们添加到用户的任务列表。

我们将学习以下概念:

  • 创建 GraphQL 变更
  • 使用 useMutationReact Hook
  • 捕获加载/已完成/错误状态

让我们开始吧!

Did you find this page helpful?
Start with GraphQL on Hasura for Free
  • ArrowBuild apps and APIs 10x faster
  • ArrowBuilt-in authorization and caching
  • Arrow8x more performant than hand-rolled APIs
Promo
footer illustration
Brand logo
© 2024 Hasura Inc. All rights reserved
Github
Titter
Discord
Facebook
Instagram
Youtube
Linkedin