Skip to content

Commit

Permalink
Expose variables in ComplexityContext to allow custom complexity calc…
Browse files Browse the repository at this point in the history
…ulation (#6262)

Co-authored-by: Simon Gabler <simon.gabler@solytic.com>
  • Loading branch information
sgabler and sgabler-solytic authored Jun 14, 2023
1 parent aaa3854 commit 1fc39ec
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public ComplexityContext(
/// </summary>
public FieldNode Selection { get; }

/// <summary>
/// Gets the coerced variables of the current request.
/// </summary>
public IVariableValueCollection Variables => _valueCollection;

/// <summary>
/// Gets the field`s base complexity.
/// </summary>
Expand Down

0 comments on commit 1fc39ec

Please sign in to comment.