Skip to content

Commit 464e75c

Browse files
committed
Remove product from cart
1 parent 02b79ee commit 464e75c

File tree

1 file changed

+58
-41
lines changed

1 file changed

+58
-41
lines changed

utils/gql/GQL_MUTATIONS.js

Lines changed: 58 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -77,52 +77,58 @@ export const UPDATE_CART = gql`
7777
items {
7878
key
7979
product {
80-
id
81-
databaseId
82-
name
83-
description
84-
type
85-
onSale
86-
slug
87-
averageRating
88-
reviewCount
89-
image {
80+
node {
9081
id
91-
sourceUrl
92-
altText
93-
}
94-
galleryImages {
95-
nodes {
82+
databaseId
83+
name
84+
description
85+
type
86+
onSale
87+
slug
88+
averageRating
89+
reviewCount
90+
image {
9691
id
9792
sourceUrl
9893
altText
9994
}
95+
galleryImages {
96+
nodes {
97+
id
98+
sourceUrl
99+
altText
100+
}
101+
}
100102
}
101103
}
104+
102105
variation {
103-
id
104-
databaseId
105-
name
106-
description
107-
type
108-
onSale
109-
price
110-
regularPrice
111-
salePrice
112-
image {
106+
node {
113107
id
114-
sourceUrl
115-
altText
116-
}
117-
attributes {
118-
nodes {
108+
databaseId
109+
name
110+
description
111+
type
112+
onSale
113+
price
114+
regularPrice
115+
salePrice
116+
image {
119117
id
120-
attributeId
121-
name
122-
value
118+
sourceUrl
119+
altText
120+
}
121+
attributes {
122+
nodes {
123+
id
124+
attributeId
125+
name
126+
value
127+
}
123128
}
124129
}
125130
}
131+
126132
quantity
127133
total
128134
subtotal
@@ -131,23 +137,34 @@ export const UPDATE_CART = gql`
131137
removed {
132138
key
133139
product {
134-
id
135-
databaseId
140+
node {
141+
id
142+
databaseId
143+
}
136144
}
145+
137146
variation {
138-
id
139-
databaseId
147+
node {
148+
id
149+
databaseId
150+
}
140151
}
141152
}
153+
142154
updated {
143155
key
144156
product {
145-
id
146-
databaseId
157+
node {
158+
id
159+
databaseId
160+
}
147161
}
162+
148163
variation {
149-
id
150-
databaseId
164+
node {
165+
id
166+
databaseId
167+
}
151168
}
152169
}
153170
}

0 commit comments

Comments
 (0)