diff --git a/pages/graphql.vue b/pages/graphql.vue index 252bb9900..233689c4a 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -432,6 +432,13 @@ export default { return result === "" ? "" : `${result}` }, }, + mounted() { + if (this.$store.state.gql.schemaIntrospection && this.$store.state.gql.schema) { + const gqlSchema = gql.buildClientSchema(JSON.parse(this.$store.state.gql.schemaIntrospection)) + + this.getDocsFromSchema(gqlSchema) + } + }, methods: { getSpecialKey: getPlatformSpecialKey, doPrettifyQuery() {