Skip to content

Commit 1fc39ec

Browse files
Expose variables in ComplexityContext to allow custom complexity calculation (#6262)
Co-authored-by: Simon Gabler <simon.gabler@solytic.com>
1 parent aaa3854 commit 1fc39ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/HotChocolate/Core/src/Execution/Pipeline/Complexity/ComplexityContext.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ public ComplexityContext(
5151
/// </summary>
5252
public FieldNode Selection { get; }
5353

54+
/// <summary>
55+
/// Gets the coerced variables of the current request.
56+
/// </summary>
57+
public IVariableValueCollection Variables => _valueCollection;
58+
5459
/// <summary>
5560
/// Gets the field`s base complexity.
5661
/// </summary>

0 commit comments

Comments
 (0)