mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 23:17:20 +01:00
Add empty Mutation type
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user