-
-
Notifications
You must be signed in to change notification settings - Fork 722
/
WellKnownContextData.cs
155 lines (126 loc) · 5.58 KB
/
WellKnownContextData.cs
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
namespace HotChocolate;
/// <summary>
/// Provides keys for well-known context data.
/// </summary>
public static class WellKnownContextData
{
/// <summary>
/// The key for storing the event message / event payload to the context data.
/// </summary>
public const string EventMessage = "HotChocolate.Execution.EventMessage";
/// <summary>
/// The key for storing the subscription object to the context data.
/// </summary>
public const string Subscription = "HotChocolate.Execution.Subscription";
/// <summary>
/// The key for storing the enable tracing flag to the context data.
/// </summary>
public const string EnableTracing = "HotChocolate.Execution.EnableTracing";
/// <summary>
/// The key for setting a flag the a document was saved to the persisted query storage.
/// </summary>
public const string DocumentSaved = "HotChocolate.Execution.DocumentSaved";
/// <summary>
/// The key for setting a flag that the execution had document validation errors.
/// </summary>
public const string ValidationErrors = "HotChocolate.Execution.ValidationErrors";
/// <summary>
/// The key allows users to override the status code behavior of the default
/// HTTP response formatter.
/// </summary>
public const string HttpStatusCode = "HotChocolate.Execution.Transport.HttpStatusCode";
/// <summary>
/// The key for setting a flag that an operation was not allowed during request execution.
/// </summary>
public const string OperationNotAllowed = "HotChocolate.Execution.OperationNotAllowed";
/// <summary>
/// The key for setting a flag that introspection is allowed for this request.
/// </summary>
public const string IntrospectionAllowed = "HotChocolate.Execution.Introspection.Allowed";
/// <summary>
/// The key for setting a message that is being used when introspection is not allowed.
/// </summary>
public const string IntrospectionMessage = "HotChocolate.Execution.Introspection.Message";
/// <summary>
/// Signals that the complexity analysis shall be skipped.
/// </summary>
public const string SkipComplexityAnalysis = "HotChocolate.Execution.NoComplexityAnalysis";
/// <summary>
/// The key for setting the operation complexity.
/// </summary>
public const string OperationComplexity = "HotChocolate.Execution.OperationComplexity";
/// <summary>
/// The key for setting the maximum operation complexity.
/// </summary>
public const string MaximumAllowedComplexity = "HotChocolate.Execution.AllowedComplexity";
/// <summary>
/// Includes the query plan into the response.
/// </summary>
public const string IncludeQueryPlan = "HotChocolate.Execution.EmitQueryPlan";
/// <summary>
/// The key for setting resolver configurations.
/// </summary>
public const string ResolverConfigs = "HotChocolate.Types.ResolverConfigs";
/// <summary>
/// The key for setting resolver types.
/// </summary>
public const string ResolverTypes = "HotChocolate.Types.ResolverTypes";
/// <summary>
/// The key for setting runtime types.
/// </summary>
public const string RuntimeTypes = "HotChocolate.Types.RuntimeTypes";
/// <summary>
/// The key for setting root instances.
/// </summary>
public const string RootInstance = "HotChocolate.Types.RootInstance";
/// <summary>
/// The key identifies the resolver scope on the local context.
/// </summary>
public const string ResolverServiceScope = "HotChocolate.Resolvers.ServiceScope";
/// <summary>
/// The key to the current executor.
/// </summary>
public const string RequestExecutor = "HotChocolate.Execution.RequestExecutor";
/// <summary>
/// The key to the current schema name.
/// </summary>
public const string SchemaName = "HotChocolate.SchemaName";
/// <summary>
/// The key to the current schema.
/// </summary>
public const string Schema = "HotChocolate.Schema";
/// <summary>
/// The key to the schema building directives.
/// </summary>
public const string SchemaDirectives = "HotChocolate.Schema.Building.Directives";
/// <summary>
/// The key to the optional schema documents.
/// </summary>
public const string SchemaDocuments = "HotChocolate.Schema.Building.Documents";
/// <summary>
/// The key to get the user provided transport operation session id when executing
/// GraphQL over Websocket.
/// </summary>
public const string OperationSessionId ="HotChocolate.Execution.Transport.OperationSessionId";
/// <summary>
/// The key to get the deferred task ID on the scoped context data.
/// </summary>
public const string DeferredResultId = "HotChocolate.Execution.Defer.ResultId";
/// <summary>
/// The key to overwrite the root type instance for a request.
/// </summary>
public const string InitialValue = "HotChocolate.Execution.InitialValue";
/// <summary>
/// The key to lookup significant results that were removed during execution.
/// </summary>
public const string RemovedResults = "HotChocolate.Execution.RemovedResults";
/// <summary>
/// The key to lookup result sets that expect data patches.
/// </summary>
public const string ExpectedPatches = "HotChocolate.Execution.ExpectedPatches";
/// <summary>
/// The key to the patch ID of a result set. The patch ID references the result into which
/// the result set containing the patch ID shall be patched into.
/// </summary>
public const string PatchId = "HotChocolate.Execution.PatchId";
}