You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a type with more than nine generic arguments, the generated GraphQL-name incorrectly contains a '_'.
See example.
Steps to reproduce
public class Query
{
// Generated name (OK): NineGenericsOfInt32AndInt32AndInt32AndInt32AndInt32AndInt32AndInt32AndInt32AndInt32
public NineGenerics<int, int, int, int, int, int, int, int,int> TestNine => default!;
// Generated name (WRONG): TenGenerics_OfInt32AndInt32AndInt32AndInt32AndInt32AndInt32AndInt32AndInt32AndInt32AndInt32
public TenGenerics<int, int, int, int, int, int, int, int,int, int> TestTen => default!;
}
public class NineGenerics<T1, T2, T3, T4, T5, T6, T7, T8, T9>
{
public int Foo { get; set; }
}
public class TenGenerics<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
{
public int Foo { get; set; }
}
Relevant log output
No response
Additional Context?
I case you wonder why someone would use types with that many arguments: We use them to represent strictly typed data tables (T1 = Type of column 1, T2 = Type of column 2 etc. etc.)
Is suspect the bug to happen somewhere around here
Is there an existing issue for this?
Product
Hot Chocolate
Describe the bug
When using a type with more than nine generic arguments, the generated GraphQL-name incorrectly contains a '_'.
See example.
Steps to reproduce
Relevant log output
No response
Additional Context?
I case you wonder why someone would use types with that many arguments: We use them to represent strictly typed data tables (T1 = Type of column 1, T2 = Type of column 2 etc. etc.)
Is suspect the bug to happen somewhere around here
graphql-platform/src/HotChocolate/Core/src/Abstractions/NameFormattingHelpers.cs
Line 193 in f7cec16
Version
13.4.0
The text was updated successfully, but these errors were encountered: