We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5060cd1 + 7883682 commit c55ee0eCopy full SHA for c55ee0e
src/utils/gql/GQL_MUTATIONS.ts
@@ -1,5 +1,33 @@
1
import { gql } from '@apollo/client';
2
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
+
31
export const ADD_TO_CART = gql`
32
mutation ($input: AddToCartInput!) {
33
addToCart(input: $input) {
0 commit comments