Skip to content

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

Fixed default query

Dmitry Yankowski57950e26374e
diff --git a/store/state.js b/store/state.js
index 37b6eeae1..16e4040d8 100644
--- a/store/state.js
+++ b/store/state.js
@@ -23,8 +23,8 @@ export default () => ({
headers: [],
schema: "",
variablesJSONString: '{ "id": "1" }',
- query: `query charcter {
- character(id: 1) {
+ query: `query charcter($id: ID) {
+ character(id: $id) {
id
name
}