-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
kind/enhancementNew feature or requestNew feature or requeststage/5-alpha-release-testingThe pull request is merged, an alpha release is available, to be testedThe pull request is merged, an alpha release is available, to be tested
Description
Describe the bug
using GraphQL; declaration is included in generated code, but not used at all. Such behavior creates some problems when using this plugin for projects that have no GraphQL dependency installed at all or when it uses another .NET GraphQL framework (HotChocolate in my case).
To Reproduce
Just generate C# code using the data provided below.
- My GraphQL schema:
enum ns {
dummy
}- My
codegen.ymlconfig file:
schema: schema.gql
generates:
MyTypes.cs:
plugins:
- c-sharp
config:
namespaceName: MyCompany.MyNamespaceExpected behavior
Generated C# code will not have unused GraphQL dependency
Environment:
- OS: Windows
@graphql-codegen/cli: 1.21.7@graphql-codegen/c-sharp: 3.0.2- NodeJS: 14.16.1
Metadata
Metadata
Assignees
Labels
kind/enhancementNew feature or requestNew feature or requeststage/5-alpha-release-testingThe pull request is merged, an alpha release is available, to be testedThe pull request is merged, an alpha release is available, to be tested