diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-01-30 12:39:31 -0500 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-01-30 12:39:31 -0500 |
| commit | 0a1648bf47490b312169c531aeb51ef4725e8d2e (patch) | |
| tree | a9c3dd7b50bc8dd563d9efeee3eeafaca1b3019a /queries/index.js | |
| parent | 0f1b9240bbd05b377e868faf78b89b509a3d7537 (diff) | |
Saying goodbye to graphcool
Diffstat (limited to 'queries/index.js')
| -rw-r--r-- | queries/index.js | 18 |
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 + } + } + } +`; |
