diff --git a/src/Tgstation.Server.Host/Core/Application.cs b/src/Tgstation.Server.Host/Core/Application.cs index 44d5dd76e9..fa7a4ea27a 100644 --- a/src/Tgstation.Server.Host/Core/Application.cs +++ b/src/Tgstation.Server.Host/Core/Application.cs @@ -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() .BindRuntimeType() - .AddQueryType(); + .AddQueryType() + .AddMutationType(); void AddTypedContext() where TContext : DatabaseContext diff --git a/src/Tgstation.Server.Host/GraphQL/Mutation.cs b/src/Tgstation.Server.Host/GraphQL/Mutation.cs new file mode 100644 index 0000000000..7988affc6b --- /dev/null +++ b/src/Tgstation.Server.Host/GraphQL/Mutation.cs @@ -0,0 +1,11 @@ +namespace Tgstation.Server.Host.GraphQL +{ + /// + /// Root type for GraphQL mutations. + /// + 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 + } +}