mirror of
https://github.com/zhigang1992/apollo.git
synced 2026-05-21 22:58:42 +08:00
Update docs/source/tutorial/mutations.md
Co-Authored-By: Peggy Rayzis <peggyrayzis@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ const LOGIN_USER = gql`
|
||||
`;
|
||||
```
|
||||
|
||||
Just like before, we're using the `gql` function to wrap our GraphQL mutation so it can be parsed into an AST. We're also importing some components that we'll use in the next steps. Now, let's bind this mutation to our component by passing it to the `useMutation` Hook:
|
||||
Just like before, we're using the `gql` function to wrap our GraphQL mutation so it can be parsed into an AST. We're also importing some components that we'll use in the next steps. Now, let's bind this mutation to our component by passing it to the `useMutation` hook:
|
||||
|
||||
_src/pages/login.js_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user