Created
May 16, 2018 05:15
-
-
Save stubailo/041999ba5b8b15cede60b93ff9a38f53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { buildClientSchema, printSchema } = require("graphql"); | |
const fs = require("fs"); | |
const introspectionSchemaResult = JSON.parse(fs.readFileSync("result.json")); | |
const graphqlSchemaObj = buildClientSchema(introspectionSchemaResult); | |
const sdlString = printSchema(graphqlSchemaObj); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment