Open batbeer opened 1 year ago
Do you register the InterfacetTYpe on the schema builder with AddType<TestType>
?
yes it is registered, the issue is that it tries to register it again as a objectType when used in the query.
public IQueryable<Test> GetTests(DatabaseContext databaseContext)
Edit: updated it so it looks like actual code
Can you provide a minimal reproduction of this issue in a Github repository?
Best start with dotnet new graphql
@batbeer try to add UsePaging(typeof(TestType))
. I had the same problem as you and just figured it out. I believe it's do to something in the UsePaging
logic not able to find the interface type correctly.
@madiganz Thanks! this works 👍
Is there an existing issue for this?
Product
Hot Chocolate
Describe the bug
it tries to add the InterfaceType both from the query and the type itself, causing hotchocolate to get an error:
The name Test was already registered by another type. (HotChocolate.Types.ObjectType)
Steps to reproduce
https://github.com/glen-84/hc-6589 (.NET 8, HC 13.8.1)
result in the error: The name)
Test
was already registered by another type. (HotChocolate.Types.ObjectTypeRelevant log output
Additional Context?
No response
Version
13.5.1