-
-
Notifications
You must be signed in to change notification settings - Fork 787
Description
Product
Hot Chocolate
Is your feature request related to a problem?
[GraphQLName("Article")]
public sealed class ArticleModel
{
...
[ID<ArticleModel>]
public static async Task<long> DraftArticle(
This uses the name ArticleModel
for the ID – could it use the GraphQL name (Article
) instead?
The solution you'd like
public IDAttribute()
{
var type = typeof(T);
TypeName = type.GetCustomAttribute<GraphQLNameAttribute>()?.Name ?? type.Name;
}
I can send a PR if this makes sense.
alphaqu