File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ def non_nullable_array
307
307
it "outputs the appropriate error message when using non-interpreter schema" do
308
308
res = ErrorsTestSchemaWithoutInterpreter . execute ( "{ nonNullableArray }" )
309
309
expected_error = {
310
- "message" => "Cannot return null for non-nullable field Query.nonNullableArray" ,
310
+ "message" => "Cannot return null for non-nullable element of type 'String!' for Query.nonNullableArray" ,
311
311
"path" => [ "nonNullableArray" , 0 ] ,
312
312
"locations" => [ { "line" => 1 , "column" => 3 } ]
313
313
}
@@ -317,7 +317,7 @@ def non_nullable_array
317
317
it "outputs the appropriate error message when using interpreter schema" do
318
318
res = ErrorsTestSchema . execute ( "{ nonNullableArray }" )
319
319
expected_error = {
320
- "message" => "Cannot return null for non-nullable field Query.nonNullableArray" ,
320
+ "message" => "Cannot return null for non-nullable element of type 'String!' for Query.nonNullableArray" ,
321
321
"path" => [ "nonNullableArray" , 0 ] ,
322
322
"locations" => [ { "line" => 1 , "column" => 3 } ]
323
323
}
Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ def execute_multiplex(multiplex:)
511
511
}
512
512
}
513
513
GRAPHQL
514
- assert_equal [ "Cannot return null for non-nullable field Query.find" ] , res [ "errors" ] . map { |e | e [ "message" ] }
514
+ assert_equal [ "Cannot return null for non-nullable element of type 'Entity!' for Query.find" ] , res [ "errors" ] . map { |e | e [ "message" ] }
515
515
end
516
516
517
517
it "works with lists of unions" do
You can’t perform that action at this time.
0 commit comments