summaryrefslogtreecommitdiffstats
path: root/frontend/queries/index.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-04-06 16:44:50 -0400
committerWes Bos <wesbos@gmail.com>2018-04-06 16:44:50 -0400
commitd22616d5a675f5a381c741784333151255713b45 (patch)
tree51dc4a138fc4b1e8ac1b1e287e5c246f24377242 /frontend/queries/index.js
parentd90d97337c39e1fa723ee01627fbd3f78adfcf31 (diff)
local data with apollo
Diffstat (limited to 'frontend/queries/index.js')
-rw-r--r--frontend/queries/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/frontend/queries/index.js b/frontend/queries/index.js
index 15eaf49..5e9e28b 100644
--- a/frontend/queries/index.js
+++ b/frontend/queries/index.js
@@ -259,3 +259,14 @@ export const UPDATE_PERMISSIONS_MUTATION = gql`
}
}
`;
+
+export const LOCAL_STATE_QUERY = gql`
+ {
+ cartOpen @client
+ }
+`;
+export const TOGGLE_CART_MUTATION = gql`
+ mutation toggleCart {
+ toggleCart @client
+ }
+`;