Js-graphql-intellij-plugin: [schema] lack of comments/description of GraphQL objects when schema is generated from endpoint

Created on 20 Apr 2018  路  1Comment  路  Source: jimkyndemeyer/js-graphql-intellij-plugin

This is my config:

{
  "info": "graphQL api config for IDEs",
  "schema": {
    "request": {
      "url": "http://localhost:8182/api/graphql?",
      "method": "POST",
      "postIntrospectionQuery": true,
      "options": {
        "headers": {
          "user-agent": "JS GraphQL"
        }
      }
    }
  },
  "endpoints" : [
    {
      "name": "GraphQL API",
      "url": "http://localhost:8182/api/graphql",
      "options" : {
        "headers": {
          "user-agent" : "JS GraphQL"
        }
      }
    }
  ]
}

Unfortunately when plugin loading schema it drops the description of types definitions and props
defined in backend schema:

type File {
    # File id - it is file key name at storage service
    id: ID!
    # File name - display name
    name: String!

in generated schema:

type File {
    id: ID!
    name: String!
v2-architecture

Most helpful comment

Fixed in https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/releases/tag/2.0.0-alpha-3 which uses the quoted/triple quoted schema descriptions as outlined in the latest GraphQL draft spec.

>All comments

Fixed in https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/releases/tag/2.0.0-alpha-3 which uses the quoted/triple quoted schema descriptions as outlined in the latest GraphQL draft spec.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaxmaxmaximusAWS picture MaxmaxmaximusAWS  路  4Comments

Globegitter picture Globegitter  路  5Comments

tkvlnk picture tkvlnk  路  3Comments

MichaelDeBoey picture MichaelDeBoey  路  4Comments

jimkyndemeyer picture jimkyndemeyer  路  6Comments