We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using graphql-codgen in Typescript I'm able to generate code from a schema without providing any queries or mutations.
For example:
import type { CodegenConfig } from "@graphql-codegen/cli"; const config: CodegenConfig = { overwrite: true, schema: "src/canvas/generated/schema.graphql", generates: { "src/canvas/generated/types.ts": { config: { emitLegacyCommonJSImports: false, namingConvention: "keep", avoidOptionals: true, }, plugins: ["typescript"], }, }, }; export default config;
This generates a file called types.rs that has just types, no queries or operations or mutations or anything.
Is there a way to do this with this library? It seems like there isn't via the CLI but I wonder if this is possible with the underlying libraries.
Thanks!
The text was updated successfully, but these errors were encountered:
I realise this is a duplicate of #443, closing.
Sorry, something went wrong.
No branches or pull requests
Using graphql-codgen in Typescript I'm able to generate code from a schema without providing any queries or mutations.
For example:
This generates a file called types.rs that has just types, no queries or operations or mutations or anything.
Is there a way to do this with this library? It seems like there isn't via the CLI but I wonder if this is possible with the underlying libraries.
Thanks!
The text was updated successfully, but these errors were encountered: