When im generated c-sharp types from graphql schema i got multiple class generation for same Response. Exemple, :
public class GearSetupTypeSelection {
[JsonProperty("id")]
public string id { get; set; }
public class ItemTypeSelection {
[JsonProperty("id")]
public string id { get; set; }
}
[JsonProperty("primaryWeapon")]
public ItemTypeSelection primaryWeapon { get; set; }
public class ItemTypeSelection {
[JsonProperty("id")]
public string id { get; set; }
}
[JsonProperty("secondaryWeapon")]
public ItemTypeSelection secondaryWeapon { get; set; }
public class ItemTypeSelection {
[JsonProperty("id")]
public string id { get; set; }
}
[JsonProperty("classItem")]
public ItemTypeSelection classItem { get; set; }
}
I just want to have one public class ItemTypeSelection { ... }
My graphql got fields like : primaryWeapon { ...ItemFields } secondaryWeapon { ...ItemFields} classItem {...ItemFields}
Which packages are impacted by your issue?
@graphql-codegen/c-sharp
Describe the bug
Which packages are impacted by your issue?
No response
Describe the bug
When im generated c-sharp types from graphql schema i got multiple class generation for same Response. Exemple, :
I just want to have one public class ItemTypeSelection { ... } My graphql got fields like : primaryWeapon { ...ItemFields } secondaryWeapon { ...ItemFields} classItem {...ItemFields}
My nodejs codegen config is :
Your Example Website or App
havent
Steps to Reproduce the Bug or Issue
Have multiple identicals fragment on a query or mutation
Expected behavior
Just have one class definition
Screenshots or Videos
No response
Platform
graphql
version: 12.0.11@graphql-codegen/*
version(s): 3.1.0Codegen Config File
Additional context
No response