You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 2 proposed ways of importing graphql files into one another and the 1st one is covered by this loader. The other one is through the use of an import directive
This is probably something that will be used in the future of Graphql as it is similar to how Graphql specification is written. It could become a spec, so supporting it could be great.
In addition to supporting this, there could also be an export of this so that the developer can use it in their schema for other graphql tools to correctly lint it or something.
eg: import { importDirective } from 'webpack-graphql-loader';
The text was updated successfully, but these errors were encountered:
A ha! thank you for pointing me to that issue, and for the suggestion! 😄
An (admittedly cursory) google for "graphql import directive" does not seem to indicate to me that other tools support this yet, although it's quite possible I'm searching for the wrong thing or looking in the wrong place 😬. I don't think we are likely to merge support for this directive until we see stronger community consensus around it.
I think if this import directive proposal moves forward, or if many other tools support it, then we will be interested in supporting it also 👍.
There are 2 proposed ways of importing graphql files into one another and the 1st one is covered by this loader. The other one is through the use of an import directive
This is probably something that will be used in the future of Graphql as it is similar to how Graphql specification is written. It could become a spec, so supporting it could be great.
In addition to supporting this, there could also be an export of this so that the developer can use it in their schema for other graphql tools to correctly lint it or something.
eg:
import { importDirective } from 'webpack-graphql-loader';
The text was updated successfully, but these errors were encountered: