mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 11:20:05 +02:00
GraphQl dataStructure refactored
This commit is contained in:
1 parent
95443d2996
commit
6c2104f6d7
8 files changed
+35
-154
No files matched your search
@@ -0,0 +1,6 @@
|
||||
namespace WotBlitzStatistics.GraphQl.ObjectTypes
|
||||
{
|
||||
public class PlayerAcchievementsInfoObjectType
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,16 @@
|
||||
using HotChocolate.Types;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
using WotBlitzStatisticsPro.WgApiClient.Model;
|
||||
|
||||
namespace WotBlitzStatistics.GraphQl.ObjectTypes
|
||||
{
|
||||
public class PlayerAccountInfoObjectType: ObjectType<PlayerAccountInfo>
|
||||
public class PlayerAccountInfoObjectType: ObjectType<AccountInfo>
|
||||
{
|
||||
protected override void Configure(IObjectTypeDescriptor<PlayerAccountInfo> descriptor)
|
||||
protected override void Configure(IObjectTypeDescriptor<AccountInfo> descriptor)
|
||||
{
|
||||
base.Configure(descriptor);
|
||||
descriptor.Field(a => a.Private).Ignore();
|
||||
descriptor.Field("Tanks").Type<NonNullType<ListType<StringType>>>()
|
||||
.Resolver(c => new List<string> { "Fuck yeah" });
|
||||
// Add resolver for Clan, Tanks, Achievements
|
||||
// https://hotchocolate.io/docs/schema-object-type
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace WotBlitzStatistics.GraphQl.ObjectTypes
|
||||
{
|
||||
public class PlayerClanInfoObjectType
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace WotBlitzStatistics.GraphQl.ObjectTypes
|
||||
{
|
||||
public class PlayerTankInfoObjectType
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user