From 879fc58d9cce55b3f1dedb06e8a1c6612f0913ea Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 21 Nov 2019 00:01:12 -0500 Subject: [PATCH] Added mutation for working with the GQL store --- store/mutations.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/store/mutations.js b/store/mutations.js index 37473e4b..1d3339c1 100644 --- a/store/mutations.js +++ b/store/mutations.js @@ -3,6 +3,10 @@ export default { state.request[object.attribute] = object.value }, + setGQLState(state, object) { + state.gql[object.attribute] = object.value; + }, + addHeaders(state, value) { state.request.headers.push(value); },