-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphQLServerModuleManifest.cs
More file actions
36 lines (31 loc) · 1.23 KB
/
GraphQLServerModuleManifest.cs
File metadata and controls
36 lines (31 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using HotChocolate.Execution.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Modulight.Modules.Server.GraphQL
{
/// <summary>
/// Manifest for <see cref="GraphQLServerModule"/>.
/// </summary>
public record GraphQLServerModuleManifest : ModuleManifest<IGraphQLServerModule>
{
/// <summary>
/// Schema name.
/// </summary>
public string SchemaName { get; init; } = "";
/// <summary>
/// Endpoint.
/// </summary>
public string Endpoint { get; init; } = "";
/// <summary>
/// Query type for <see cref="SchemaRequestExecutorBuilderExtensions.AddQueryType(IRequestExecutorBuilder, Type)"/>.
/// </summary>
public Type? QueryType { get; init; }
/// <summary>
/// Mutation type for <see cref="SchemaRequestExecutorBuilderExtensions.AddMutationType(IRequestExecutorBuilder, Type)"/>.
/// </summary>
public Type? MutationType { get; init; }
/// <summary>
/// Subscription type for <see cref="SchemaRequestExecutorBuilderExtensions.AddSubscriptionType(IRequestExecutorBuilder, Type)"/>.
/// </summary>
public Type? SubscriptionType { get; init; }
}
}