File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,6 @@ Feature: GraphQL introspection support
562
562
Then the response status code should be 200
563
563
And the response should be in JSON
564
564
And the header "Content-Type" should be equal to "application/json"
565
- And the GraphQL debug message should be equal to 'Type with id "VoDummyInspectionCursorConnection" is not present in the types container'
566
565
And the JSON node "data.typeNotAvailable" should be null
567
566
And the JSON node "data.typeOwner.fields[1].type.name" should be equal to "VoDummyInspectionCursorConnection"
568
567
Original file line number Diff line number Diff line change @@ -87,8 +87,12 @@ public function getSchema(): Schema
87
87
88
88
$ schema = [
89
89
'query ' => $ queryType ,
90
- 'typeLoader ' => function (string $ typeName ): Type &NamedType {
91
- $ type = $ this ->typesContainer ->get ($ typeName );
90
+ 'typeLoader ' => function (string $ typeName ): ?NamedType {
91
+ try {
92
+ $ type = $ this ->typesContainer ->get ($ typeName );
93
+ } catch (TypeNotFoundException ) {
94
+ return null ;
95
+ }
92
96
93
97
return Type::getNamedType ($ type );
94
98
},
You can’t perform that action at this time.
0 commit comments