Created
May 16, 2018 05:13
-
-
Save stubailo/3341ae3f3637e779fbe10ed42db8c1f0 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 { buildSchema, graphqlSync, introspectionQuery } = require("graphql"); | |
const sdlString = ` | |
type Query { | |
hello: String | |
} | |
`; | |
const graphqlSchemaObj = buildSchema(sdlString); | |
const result = graphqlSync(graphqlSchemaObj, introspectionQuery).data; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment