4
4
using System . Text . Json ;
5
5
using HotChocolate . Execution . Processing ;
6
6
using HotChocolate . Fusion . Execution . Nodes ;
7
+ using HotChocolate . Fusion . Execution . Pipeline ;
7
8
using HotChocolate . Fusion . Metadata ;
8
9
using HotChocolate . Fusion . Planning ;
9
10
using HotChocolate . Fusion . Utilities ;
12
13
using HotChocolate . Types ;
13
14
using HotChocolate . Utilities ;
14
15
using static HotChocolate . Execution . Processing . Selection ;
16
+ using ErrorHelper = HotChocolate . Utilities . ErrorHelper ;
15
17
using IType = HotChocolate . Types . IType ;
16
18
using ObjectType = HotChocolate . Types . ObjectType ;
17
19
@@ -774,7 +776,7 @@ private static void AddSemanticNonNullViolation(
774
776
int responseIndex )
775
777
{
776
778
var path = PathHelper . CreatePathFromContext ( selection , selectionSetResult , responseIndex ) ;
777
- var error = SemanticNonNullTypeInterceptor . CreateSemanticNonNullViolationError ( path , selection ) ;
779
+ var error = ErrorHelper . CreateSemanticNonNullViolationError ( path , selection ) ;
778
780
resultBuilder . AddError ( error ) ;
779
781
}
780
782
@@ -789,9 +791,6 @@ private static void PropagateNullValues(
789
791
ValueCompletion . PropagateNullValues ( selectionSetResult ) ;
790
792
}
791
793
792
- // TODO: Pull out
793
- private const int MaxLevels = 3 ;
794
-
795
794
private static readonly CustomOptionsFlags [ ] _levelOptions =
796
795
[
797
796
CustomOptionsFlags . Option5 ,
@@ -801,7 +800,7 @@ private static void PropagateNullValues(
801
800
802
801
private static bool IsSemanticNonNull ( Selection selection , int level )
803
802
{
804
- if ( level >= MaxLevels )
803
+ if ( level >= SemanticNonNullOptimizer . MaxLevels )
805
804
{
806
805
return true ;
807
806
}
0 commit comments