Closed craigbehnke closed 4 months ago
Workaround for anyone in the future that is hitting the same problem: there is a workaround for this in the documentation already. (https://chillicream.com/docs/hotchocolate/v13/distributed-schema/schema-configuration#ignore-types)
So my startup code now reads (in part):
builder.Services
.AddGraphQLServer()
// All of my other configuration
.ModifyOptions(x => x.RemoveUnreachableTypes = true);
Still, it is strange that this was the default behavior.
This one is fixed with the new ObjectTypeAttribute
which replaces the ExtendObjectTypeAttribute
Is there an existing issue for this?
Product
Hot Chocolate
Describe the bug
I have tried to remove properties from a type within a subgraph, but while the property is hidden from the object type, the types backing those properties are still included.
I would expect that the enum, since it is not used anywhere, would not be included.
AccountTypeEnum is not used anywhere else.
Steps to reproduce
public enum AccountTypeEnum { CreditCard, Checking, Savings }
enum AccountTypeEnum { CREDIT_CARD CHECKING SAVINGS }