@@ -50,23 +50,23 @@ public GraphQLSchema(GraphQLObjectType queryType, GraphQLObjectType mutationType
5050 this (queryType , mutationType , null , additionalTypes );
5151 }
5252
53- public GraphQLSchema (GraphQLObjectType queryType , GraphQLObjectType mutationType , GraphQLObjectType subscriptionType , Set <GraphQLType > dictionary ) {
54- this (queryType , mutationType , subscriptionType , dictionary , Collections .emptySet (), DEFAULT_FIELD_VISIBILITY );
53+ public GraphQLSchema (GraphQLObjectType queryType , GraphQLObjectType mutationType , GraphQLObjectType subscriptionType , Set <GraphQLType > additionalTypes ) {
54+ this (queryType , mutationType , subscriptionType , additionalTypes , Collections .emptySet (), DEFAULT_FIELD_VISIBILITY );
5555 }
5656
57- public GraphQLSchema (GraphQLObjectType queryType , GraphQLObjectType mutationType , GraphQLObjectType subscriptionType , Set <GraphQLType > dictionary , Set <GraphQLDirective > directives , GraphqlFieldVisibility fieldVisibility ) {
58- assertNotNull (dictionary , "dictionary can't be null" );
57+ public GraphQLSchema (GraphQLObjectType queryType , GraphQLObjectType mutationType , GraphQLObjectType subscriptionType , Set <GraphQLType > additionalTypes , Set <GraphQLDirective > directives , GraphqlFieldVisibility fieldVisibility ) {
58+ assertNotNull (additionalTypes , "additionalTypes can't be null" );
5959 assertNotNull (queryType , "queryType can't be null" );
6060 assertNotNull (directives , "directives can't be null" );
6161 assertNotNull (fieldVisibility , "fieldVisibility can't be null" );
6262 this .queryType = queryType ;
6363 this .mutationType = mutationType ;
6464 this .subscriptionType = subscriptionType ;
6565 this .fieldVisibility = fieldVisibility ;
66- this .additionalTypes = dictionary ;
66+ this .additionalTypes = additionalTypes ;
6767 this .directives = new LinkedHashSet <>(Arrays .asList (Directives .IncludeDirective , Directives .SkipDirective ));
6868 this .directives .addAll (directives );
69- typeMap = new SchemaUtil ().allTypes (this , dictionary );
69+ typeMap = new SchemaUtil ().allTypes (this , additionalTypes );
7070 }
7171
7272 public Set <GraphQLType > getAdditionalTypes () {
0 commit comments