pgutkowski / KGraphQL

Pure Kotlin GraphQL implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When overwriting a property, the GraphQL repeats the original property unless ignored

mdnorman opened this issue · comments

I have a class that has an id field, but I don't want to use it directly. Instead, I want to replace its implementation with a derivative function and type with another type. I want to do this by just adding a replacement field of the same name. But this requires to ignore the original property, which is strange.

My expectation is that if creating a new field with the same name that it would automatically ignore the original property.