Js-graphql-intellij-plugin: Allow `.graphqls` file setting in `graphql.config.json`

Created on 27 Mar 2017  路  3Comments  路  Source: jimkyndemeyer/js-graphql-intellij-plugin

Thanks for the awesome plugin!

It would be nice if this plugin would recognise .graphql and .graphqls files instead of only .json files when configuring file. Now I have to parse my .graphqls file first or start up a server.

This is what my graphql.config.json would look like if supported:

{
  "schema": {
    "file": "data/example.graphqls"
  }
}

Or is there an another way to point this plugin to a .graphqls file instead of graphql.schema.json?

Multiple schema files would also be great of course.

enhancement

Most helpful comment

+1
also, would be great multiple schemas as pattern:

schema: "./graphql/modules/*/*.graphqls"

All 3 comments

+1
also, would be great multiple schemas as pattern:

schema: "./graphql/modules/*/*.graphqls"

Seems to work in version 1.6.1, can be closed?

Thanks @amitport, yeah this was added to support Relay Modern projects.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaxmaxmaximusAWS picture MaxmaxmaximusAWS  路  4Comments

victororlyk picture victororlyk  路  3Comments

BerndWessels picture BerndWessels  路  5Comments

jimkyndemeyer picture jimkyndemeyer  路  6Comments

Globegitter picture Globegitter  路  5Comments