11package graphql .validation .rules ;
22
33import graphql .PublicApi ;
4- import graphql .execution .ExecutionPath ;
4+ import graphql .execution .ResultPath ;
55import graphql .language .SourceLocation ;
66import graphql .schema .DataFetchingEnvironment ;
77import graphql .schema .GraphQLArgument ;
@@ -45,8 +45,8 @@ public enum ValidatedElement {
4545 private final GraphQLFieldsContainer fieldsContainer ;
4646 private final GraphQLFieldDefinition fieldDefinition ;
4747 private final GraphQLArgument argument ;
48- private final ExecutionPath executionPath ;
49- private final ExecutionPath validatedPath ;
48+ private final ResultPath executionPath ;
49+ private final ResultPath validatedPath ;
5050 private final SourceLocation location ;
5151 private final MessageInterpolator interpolator ;
5252 private final Map <Class , Object > contextMap ;
@@ -99,11 +99,11 @@ public SourceLocation getLocation() {
9999 return location ;
100100 }
101101
102- public ExecutionPath getValidatedPath () {
102+ public ResultPath getValidatedPath () {
103103 return validatedPath ;
104104 }
105105
106- public ExecutionPath getExecutionPath () {
106+ public ResultPath getExecutionPath () {
107107 return executionPath ;
108108 }
109109
@@ -146,8 +146,8 @@ public static class Builder {
146146 private GraphQLArgument argument ;
147147 private Map <String , Object > argumentValues = new HashMap <>();
148148 private GraphQLFieldDefinition fieldDefinition ;
149- private ExecutionPath validatedPath = ExecutionPath .rootPath ();
150- private ExecutionPath executionPath ;
149+ private ResultPath validatedPath = ResultPath .rootPath ();
150+ private ResultPath executionPath ;
151151 private GraphQLFieldsContainer fieldsContainer ;
152152 private MessageInterpolator interpolator ;
153153 private Locale locale ;
@@ -202,7 +202,7 @@ public Builder fieldsContainer(GraphQLFieldsContainer fieldsContainer) {
202202 return this ;
203203 }
204204
205- public Builder executionPath (ExecutionPath executionPath ) {
205+ public Builder executionPath (ResultPath executionPath ) {
206206 this .executionPath = executionPath ;
207207 return this ;
208208 }
@@ -227,7 +227,7 @@ public Builder validatedValue(Object validatedValue) {
227227 return this ;
228228 }
229229
230- public Builder validatedPath (ExecutionPath validatedPath ) {
230+ public Builder validatedPath (ResultPath validatedPath ) {
231231 this .validatedPath = validatedPath ;
232232 return this ;
233233 }
0 commit comments