GraphQLSP
GraphQLSP copied to clipboard
Support reading multiple schema files (glob pattern)
Hey there,
As GQL support multiple schema files, I would like to know if you plan to support this kind of parsing method:
{
"plugins": [
{
"name": "@0no-co/graphqlsp",
"schema": "./app/schema/**/*.graphql",
"tadaOutputLocation": "./app/types/graphql-env.ts"
}
]
}
For know, I need to create a script that generates a single common schema file to make GraphqlSP working.
This is not a good developer experience because:
- when I change my schema I need to run my custom script.
- when I clic to a field from a ts file that make a query, the IDE show me the generated schema file and not my source schema files.
Let me know if it's unclear or if you know a workaround? Thanks for you help!