Docs are persisted and regenerated from the schema introspection data
This commit is contained in:
@@ -432,6 +432,13 @@ export default {
|
|||||||
return result === "" ? "" : `${result}`
|
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: {
|
methods: {
|
||||||
getSpecialKey: getPlatformSpecialKey,
|
getSpecialKey: getPlatformSpecialKey,
|
||||||
doPrettifyQuery() {
|
doPrettifyQuery() {
|
||||||
|
|||||||
Reference in New Issue
Block a user