Docs are persisted and regenerated from the schema introspection data
This commit is contained in:
parent
6644e3b606
commit
22178a6c2e
1 changed files with 7 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue