Skip to content

Commit c55ee0e

Browse files
authored
Merge pull request #1410 from w3bdesign/develop
registerCustomer mutation
2 parents 5060cd1 + 7883682 commit c55ee0e

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)