2121@ Internal
2222public class NormalizedField {
2323 private final String alias ;
24+ private final Map <String , NormalizedInputValue > normalizedArguments ;
2425 private final Map <String , Object > arguments ;
2526 private final GraphQLObjectType objectType ;
2627 private final GraphQLFieldDefinition fieldDefinition ;
@@ -33,6 +34,7 @@ public class NormalizedField {
3334 private NormalizedField (Builder builder ) {
3435 this .alias = builder .alias ;
3536 this .arguments = builder .arguments ;
37+ this .normalizedArguments = builder .normalizedArguments ;
3638 this .objectType = builder .objectType ;
3739 this .fieldDefinition = assertNotNull (builder .fieldDefinition );
3840 this .children = builder .children ;
@@ -79,6 +81,14 @@ public boolean isConditional() {
7981 return isConditional ;
8082 }
8183
84+ public NormalizedInputValue getNormalizedArgument (String name ) {
85+ return normalizedArguments .get (name );
86+ }
87+
88+ public Map <String , NormalizedInputValue > getNormalizedArguments () {
89+ return normalizedArguments ;
90+ }
91+
8292 public Map <String , Object > getArguments () {
8393 return arguments ;
8494 }
@@ -213,6 +223,7 @@ public static class Builder {
213223 private int level ;
214224 private NormalizedField parent ;
215225 private String alias ;
226+ private Map <String , NormalizedInputValue > normalizedArguments = Collections .emptyMap ();
216227 private Map <String , Object > arguments = Collections .emptyMap ();
217228
218229 private Builder () {
@@ -221,6 +232,7 @@ private Builder() {
221232
222233 private Builder (NormalizedField existing ) {
223234 this .alias = existing .alias ;
235+ this .normalizedArguments = existing .normalizedArguments ;
224236 this .arguments = existing .arguments ;
225237 this .objectType = existing .getObjectType ();
226238 this .fieldDefinition = existing .getFieldDefinition ();
@@ -240,6 +252,11 @@ public Builder alias(String alias) {
240252 return this ;
241253 }
242254
255+ public Builder normalizedArguments (Map <String , NormalizedInputValue > arguments ) {
256+ this .normalizedArguments = arguments == null ? Collections .emptyMap () : arguments ;
257+ return this ;
258+ }
259+
243260 public Builder arguments (Map <String , Object > arguments ) {
244261 this .arguments = arguments == null ? Collections .emptyMap () : arguments ;
245262 return this ;
0 commit comments