Skip to content

Commit 7883682

Browse files
committed
Refactor
1 parent 5060cd1 commit 7883682

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/utils/gql/GQL_MUTATIONS.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
import { gql } from '@apollo/client';
22

3+
export const CREATE_USER = gql`
4+
mutation CreateUser(
5+
$username: String!
6+
$email: String!
7+
$password: String!
8+
$firstName: String
9+
$lastName: String
10+
) {
11+
registerCustomer(
12+
input: {
13+
username: $username
14+
email: $email
15+
password: $password
16+
firstName: $firstName
17+
lastName: $lastName
18+
}
19+
) {
20+
customer {
21+
id
22+
email
23+
firstName
24+
lastName
25+
username
26+
}
27+
}
28+
}
29+
`;
30+
331
export const ADD_TO_CART = gql`
432
mutation ($input: AddToCartInput!) {
533
addToCart(input: $input) {

0 commit comments

Comments
 (0)