diff --git a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Author_NonNull.md b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Author_NonNull.md index 397f3c57db9..516d61001d2 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Author_NonNull.md +++ b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Author_NonNull.md @@ -18,6 +18,78 @@ query ReformatIds { ```json { "errors": [ + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 3, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 2, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 1, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 0, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, { "message": "Internal Execution Error" } diff --git a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Author_Nullable.md b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Author_Nullable.md index 7561bb881b8..db16c37c4f0 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Author_Nullable.md +++ b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Author_Nullable.md @@ -18,6 +18,78 @@ query ReformatIds { ```json { "errors": [ + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 3, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 2, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 1, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 0, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, { "message": "Internal Execution Error" } diff --git a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Reviews_ListElement_Nullable.md b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Reviews_ListElement_Nullable.md index 89c06ab7995..ad7d761a50d 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Reviews_ListElement_Nullable.md +++ b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Accounts_Offline_Reviews_ListElement_Nullable.md @@ -18,6 +18,78 @@ query ReformatIds { ```json { "errors": [ + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 3, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 2, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 1, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 5, + "column": 13 + } + ], + "path": [ + "reviews", + 0, + "author", + "birthdate" + ], + "extensions": { + "code": "HC0018" + } + }, { "message": "Internal Execution Error" } diff --git a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Internal_Server_Error_On_Root_Field.snap b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Internal_Server_Error_On_Root_Field.snap index ea0ab9640e3..01fd8bf3c8c 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Internal_Server_Error_On_Root_Field.snap +++ b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/ErrorTests.Internal_Server_Error_On_Root_Field.snap @@ -1,5 +1,20 @@ { "errors": [ + { + "message": "Cannot return null for non-nullable field.", + "locations": [ + { + "line": 2, + "column": 5 + } + ], + "path": [ + "a" + ], + "extensions": { + "code": "HC0018" + } + }, { "message": "Internal Execution Error" }