Js-graphql-intellij-plugin: How to create gql scope?

Created on 26 Aug 2020  路  4Comments  路  Source: jimkyndemeyer/js-graphql-intellij-plugin

I have backend type definitions:
image

i have autogenerated schema file:
image

how can I set that the schema file belongs to a different scope and that it shouldn't conflict with other files?
image

I am generating a schema.graphql file to be PRESENT in the project for adding code completion. How to specify that the graphql files in the /api/src folder are isolated from the rest of the project and should not conflict with it?

I'll explain easier:
-
I have two folders backend and frontend, graphql intersect in them (one is generated based on the other), how can I indicate that these are two different scopes so that the error is not highlighted?

Most helpful comment

@MaxmaxmaximusAWS actually, do you need to generate a separate schema file if you have all type definitions in the same project? They should be used for completion without any additional steps.

All 4 comments

Lol, solution:

We shoud create two .graphqlconfig files in two scopes:

/backend/.graphqlconfig
/frontend/.graphqlconfig

@MaxmaxmaximusAWS actually, do you need to generate a separate schema file if you have all type definitions in the same project? They should be used for completion without any additional steps.

@vepanimas no, I'm using a framework that generates a graphql schema based on PostgreSQL tables =) https://www.graphile.org/postgraphile/

SQL FIRST =) by the way, I recommend it to you, this is something incredible

@MaxmaxmaximusAWS oh, ok, I got it. That looks quite promising. I don't do web development anymore, but I will definitely look at this tool.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

advance512 picture advance512  路  5Comments

idkjs picture idkjs  路  3Comments

MichaelDeBoey picture MichaelDeBoey  路  4Comments

jimkyndemeyer picture jimkyndemeyer  路  6Comments

rlancer picture rlancer  路  3Comments