From d22616d5a675f5a381c741784333151255713b45 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 6 Apr 2018 16:44:50 -0400 Subject: local data with apollo --- frontend/queries/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'frontend/queries') 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 + } +`; -- cgit v1.3