Skip to content

cannot read property __schema of undefined #18

Description

@chsi13

Got this message after did an html generation file :

graphql-docs-gen http://localhost:56911/v1/graphql documentation.html

Error coming from this block


        var Schema = exports.Schema = function() {
            function Schema(introspectionResult) {
                var _this = this;

                _classCallCheck(this, Schema);

                if (!introspectionResult.__schema) { // here !
                    throw new Error('Function "Schema" precondition failed: introspectionResult.__schema');
                }

If I run this from GraphiQL ->

query {
  __schema {
    queryType{
      name
    }
  }
}

got this :

{
  "data": {
    "__schema": {
      "queryType": {
        "name": "query_root"
      }
    }
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions