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
@graphql-codegen/client-preset
documentVariableSuffix is not respected in the graphql.ts, but it is in the gql.ts.
documentVariableSuffix
graphql.ts
gql.ts
I believe this is because documentVariableSuffix is not part of the forwarded config for graphql.ts.
https://codesandbox.io/p/devbox/priceless-water-5p9m3h?workspaceId=ws_Gkwk4Jh3EcjEfvkuEJQn9z
gql/gql.ts
Document
gql/graphql.ts
For both gql/gql.ts and gql/graphql.ts to respect the documentVariableSuffix.
No response
graphql
@graphql-codegen/*
import { CodegenConfig } from "@graphql-codegen/cli"; const config: CodegenConfig = { schema: "schema.graphql", documents: "document.graphql", generates: { "gql/": { preset: "client", config: { documentVariableSuffix: "", }, }, }, }; export default config;
The text was updated successfully, but these errors were encountered:
importDocumentNodeExternallyFrom
No branches or pull requests
Which packages are impacted by your issue?
@graphql-codegen/client-preset
Describe the bug
documentVariableSuffix
is not respected in thegraphql.ts
, but it is in thegql.ts
.I believe this is because
documentVariableSuffix
is not part of the forwarded config forgraphql.ts
.Your Example Website or App
https://codesandbox.io/p/devbox/priceless-water-5p9m3h?workspaceId=ws_Gkwk4Jh3EcjEfvkuEJQn9z
Steps to Reproduce the Bug or Issue
gql/gql.ts
, but there isDocument
in thegql/graphql.ts
documentVariableSuffix
gql/gql.ts
andgql/graphql.ts
has theDocument
suffixExpected behavior
For both
gql/gql.ts
andgql/graphql.ts
to respect thedocumentVariableSuffix
.Screenshots or Videos
No response
Platform
graphql
version: ^16.2.0@graphql-codegen/*
version(s): ^5.0.3Codegen Config File
Additional context
No response
The text was updated successfully, but these errors were encountered: