mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 10:27:18 +02:00
18 lines
662 B
C#
18 lines
662 B
C#
using HotChocolate.Types;
|
|
using WotBlitzStatisticsPro.Common.Model;
|
|
using WotBlitzStatisticsPro.GraphQl.Helpers;
|
|
using WotBlitzStatisticsPro.Logic;
|
|
|
|
namespace WotBlitzStatisticsPro.GraphQl.Resolvers
|
|
{
|
|
[ExtendObjectType(Name = "Query")]
|
|
public class AccountInfoResolver: ObjectType<AccountInfoResponse>
|
|
{
|
|
protected override void Configure(IObjectTypeDescriptor<AccountInfoResponse> descriptor)
|
|
{
|
|
descriptor.Field(t => t.ClanInfo)
|
|
.Resolver(ctx => ctx.Service<IWargamingClans>().GelClanInfoByAccount(ctx.Parent<AccountInfoResponse>().AccountId, ctx.Operation.ParseOperation()));
|
|
|
|
}
|
|
}
|
|
} |