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
The implementation of the UrlLoader supports passing IntrospectionOptions down to the getIntrospectionOptions function call:
getIntrospectionOptions
graphql-code-generator/packages/graphql-codegen-cli/src/load.ts
Line 41 in 4acf545
https://github.com/ardatan/graphql-tools/blob/2e1c0b7454d2e37c1a1cde07ce2e6622b2b83582/packages/loaders/url/src/index.ts#L404
https://github.com/ardatan/graphql-tools/blob/2e1c0b7454d2e37c1a1cde07ce2e6622b2b83582/packages/wrap/src/introspect.ts#L70
E.g. you can write a config like this:
schema: { '<schemaurl>': { inputValueDeprecation: true, }, },
And it will pass inputValueDepecation down correctly and support the inputValueDeprecation feature.
inputValueDepecation
inputValueDeprecation
However, the TypeScript types do not accept this as an option:
graphql-code-generator/packages/utils/plugins-helpers/src/types.ts
Lines 82 to 99 in 4acf545
Should this type extend LoadFromUrlOptions or IntrospectionOptions perhaps?
LoadFromUrlOptions
IntrospectionOptions
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
The implementation of the UrlLoader supports passing IntrospectionOptions down to the
getIntrospectionOptions
function call:graphql-code-generator/packages/graphql-codegen-cli/src/load.ts
Line 41 in 4acf545
https://github.com/ardatan/graphql-tools/blob/2e1c0b7454d2e37c1a1cde07ce2e6622b2b83582/packages/loaders/url/src/index.ts#L404
https://github.com/ardatan/graphql-tools/blob/2e1c0b7454d2e37c1a1cde07ce2e6622b2b83582/packages/wrap/src/introspect.ts#L70
E.g. you can write a config like this:
And it will pass
inputValueDepecation
down correctly and support theinputValueDeprecation
feature.However, the TypeScript types do not accept this as an option:
graphql-code-generator/packages/utils/plugins-helpers/src/types.ts
Lines 82 to 99 in 4acf545
Describe the solution you'd like
Should this type extend
LoadFromUrlOptions
orIntrospectionOptions
perhaps?Describe alternatives you've considered
No response
Is your feature request related to a problem? Please describe.
No response
The text was updated successfully, but these errors were encountered: