Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Added mutation for working with the GQL store

Andrew Bastin879fc58d9cce
diff --git a/store/mutations.js b/store/mutations.js
index 37473e4b9..1d3339c16 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);
},