Description
We're using graphql-codegen to generate queries and interfaces from our graphql files (it generates a single graphql.ts file with all queries and interfaces).
It's better and cleaner for us because it enforces developers to not create monster interfaces that are an absolute lie and then pass them around as though you have access to 10x fields when you only requested 2x. If you create a fragment, you get an exact interface generated of it, so you can import and use it.
I'm not seeing any reference in the documentation or any prior issue about supporting this and I just get errors when trying it. I have the latest extension (2.5.5 Released in 2025-02-19):
{
"client": {
"includes": ["./{apps,libs}/**/graphql"],
"service": {
"name": "blahblah",
"localSchemaFile": "./schema.graphql"
}
}
}
Btw, I'm specifying localSchemaFile because I think I'm hitting the CF Firewall when trying to use introspection. We have a local schema to get around this when using graphql-codegen as well.
My error when I try to use .graphql files:
