1.0.9 • Published 3 years ago
gqlinspector-core v1.0.9
GQLInspector-core
Inspect graphql schema from gql endpoint. (Introspection should be enabled.)
Why you should disable graphql inspection in production
General
Apollo
Installation
Using npm :
$ npm i gqlinspector-core
Usage
import inspectSchema from 'gqlinspector-core'
const endpoint = 'http://localhost:4000'
inspectSchema(endpoint)
.then(result => {
doSomethingWithInspectionResult(result.schema)
result.parsedTypes.forEach(parsedType => {
doSomethingWithParsedType(parsedType)
})
})
Dependencies
fetch
from node-fetch@2.6.1
getIntrospectionSchema()
from graphql