Add empty Mutation type

This commit is contained in:
Jordan Dominion
2024-09-09 07:06:54 -04:00
parent e7cbd7978c
commit 615cda54a9
2 changed files with 14 additions and 2 deletions
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Frozen;
using System.Collections.Generic;
using System.Globalization;
@@ -294,7 +294,8 @@ namespace Tgstation.Server.Host.Core
.AddAuthorization()
.AddType<UnsignedIntType>()
.BindRuntimeType<Version, SemverType>()
.AddQueryType<Query>();
.AddQueryType<Query>()
.AddMutationType<Mutation>();
void AddTypedContext<TContext>()
where TContext : DatabaseContext
@@ -0,0 +1,11 @@
namespace Tgstation.Server.Host.GraphQL
{
/// <summary>
/// Root type for GraphQL mutations.
/// </summary>
public sealed class Mutation
{
// Intentionally left blank, use type extensions to properly scope operations to domains
// https://chillicream.com/docs/hotchocolate/v13/defining-a-schema/extending-types
}
}