@@ -9,30 +9,71 @@ namespace GraphQL.Execution
9
9
{
10
10
public interface IExecutionContext : IProvideUserContext
11
11
{
12
+ /// <summary>
13
+ /// Propagates notification that the GraphQL request should be canceled
14
+ /// </summary>
12
15
CancellationToken CancellationToken { get ; }
13
16
17
+ /// <summary>
18
+ /// The parsed GraphQL request
19
+ /// </summary>
14
20
Document Document { get ; }
15
21
22
+ /// <summary>
23
+ /// A list of errors generated during GraphQL request processing
24
+ /// </summary>
16
25
ExecutionErrors Errors { get ; }
17
26
27
+ /// <summary>
28
+ /// A list of <see cref="FragmentDefinition"/>s that pertain to the GraphQL request
29
+ /// </summary>
18
30
Fragments Fragments { get ; }
19
31
32
+ /// <summary>
33
+ /// A list of <see cref="IDocumentExecutionListener"/>s, enabling code to be executed at various points during the processing of the GraphQL query
34
+ /// </summary>
20
35
List < IDocumentExecutionListener > Listeners { get ; }
21
36
37
+ /// <summary>
38
+ /// If set, limits the maximum number of nodes (in other words GraphQL fields) executed in parallel
39
+ /// </summary>
22
40
int ? MaxParallelExecutionCount { get ; }
23
41
42
+ /// <summary>
43
+ /// Provides performance metrics logging capabilities
44
+ /// </summary>
24
45
Metrics Metrics { get ; }
25
46
47
+ /// <summary>
48
+ /// The GraphQL operation that is being executed
49
+ /// </summary>
26
50
Operation Operation { get ; }
27
51
52
+ /// <summary>
53
+ /// Object to pass to the <see cref="IResolveFieldContext.Source"/> property of first-level resolvers
54
+ /// </summary>
28
55
object RootValue { get ; }
29
56
57
+ /// <summary>
58
+ /// Schema of the graph to use
59
+ /// </summary>
30
60
ISchema Schema { get ; }
31
61
62
+ /// <summary>
63
+ /// When <c>false</c>, <see cref="DocumentExecuter"/> and <see cref="ExecutionStrategy"/> capture unhandled
64
+ /// exceptions and store them within <see cref="Errors">Errors</see>
65
+ /// </summary>
32
66
bool ThrowOnUnhandledException { get ; }
33
67
68
+ /// <summary>
69
+ /// A delegate that can override, hide, modify, or log unhandled exceptions before they are stored
70
+ /// within <see cref="Errors"/> as an <see cref="ExecutionError"/>.
71
+ /// </summary>
34
72
Action < UnhandledExceptionContext > UnhandledExceptionDelegate { get ; }
35
73
74
+ /// <summary>
75
+ /// Input variables to the GraphQL request
76
+ /// </summary>
36
77
Variables Variables { get ; }
37
78
}
38
79
}
0 commit comments