Skip to content

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

GraphQL page now notifies the query editor about the schema for validation

Andrew Bastin77e51f330111
diff --git a/pages/graphql.vue b/pages/graphql.vue
index f6ca59d6c..606796472 100644
--- a/pages/graphql.vue
+++ b/pages/graphql.vue
@@ -812,6 +812,8 @@ export default {
}
}
this.gqlTypes = types;
+
+ this.$refs.queryEditor.setValidationSchema(schema);
this.$nuxt.$loading.finish();
const duration = Date.now() - startTime;