1.0.9 • Published 3 years ago

gqlinspector-core v1.0.9

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
3 years ago

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

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago