Docs are persisted and regenerated from the schema introspection data

This commit is contained in:
Andrew Bastin
2020-05-05 17:28:43 -04:00
parent 6644e3b606
commit 22178a6c2e

View File

@@ -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() {