initial commit

This commit is contained in:
Yui
2025-11-26 16:50:06 -03:00
commit 5644aa0ebf
47 changed files with 800 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using Application.Interfaces.Services;
using Domain.Entities;
using HotChocolate.Subscriptions;
namespace GraphQLTEST.GraphQL.Mutations;
[ExtendObjectType(nameof(MutationType))]
public class KillMutations
{
public async Task<Kill> RemoveKill(int id, [Service] IKillService service, [Service] ITopicEventSender eventSender, CancellationToken cancellationToken)
{
var kill = service.GetKillById(id);
service.RemoveKill(kill);
await eventSender.SendAsync(nameof(RemoveKill), kill, cancellationToken);
return kill;
}
}