summaryrefslogtreecommitdiffstats
path: root/queries/index.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-01-30 12:39:31 -0500
committerWes Bos <wesbos@gmail.com>2018-01-30 12:39:31 -0500
commit0a1648bf47490b312169c531aeb51ef4725e8d2e (patch)
treea9c3dd7b50bc8dd563d9efeee3eeafaca1b3019a /queries/index.js
parent0f1b9240bbd05b377e868faf78b89b509a3d7537 (diff)
Saying goodbye to graphcool
Diffstat (limited to 'queries/index.js')
-rw-r--r--queries/index.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/queries/index.js b/queries/index.js
index 87dd5d1..8b7897f 100644
--- a/queries/index.js
+++ b/queries/index.js
@@ -176,3 +176,21 @@ export const REMOVE_FROM_CART_MUTATION = gql`
}
}
`;
+
+export const GET_CART_STATE = gql`
+ query {
+ ui {
+ isCartOpen
+ }
+ }
+`;
+
+export const UPDATE_CART_STATE = gql`
+ mutation updateCartState($isCartOpen: Boolean!) {
+ updateCartState(isCartOpen: $isCartOpen) {
+ ui {
+ isCartOpen
+ }
+ }
+ }
+`;