Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved error messages for missing conventions (#2457)
- Loading branch information
1 parent
5c419eb
commit a9e91a9
Showing
9 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...lterInputTypeTest.FilterInputType_Should_ThrowException_WhenNoConventionIsRegistered.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
For more details look at the `Errors` property. | ||
|
||
1. For more details look at the `Errors` property. | ||
|
||
1. No filter convention found for scope `Foo`. Register a convention with `AddConvention<IFilterConvention, TYourConvention>("Foo")` on the schema builder. | ||
(HotChocolate.Data.Filters.FilterInputType<HotChocolate.Data.Tests.FilterInputTypeTest.Foo>) |
6 changes: 6 additions & 0 deletions
6
...utTypeTest.FilterInputType_Should_ThrowException_WhenNoConventionIsRegisteredDefault.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
For more details look at the `Errors` property. | ||
|
||
1. For more details look at the `Errors` property. | ||
|
||
1. No default filter convention found. Call `AddFiltering()` on the schema builder. | ||
(HotChocolate.Data.Filters.FilterInputType<HotChocolate.Data.Tests.FilterInputTypeTest.Foo>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
..._/SortInputTypeTest.SortInputType_Should_ThrowException_WhenNoConventionIsRegistered.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
For more details look at the `Errors` property. | ||
|
||
1. For more details look at the `Errors` property. | ||
|
||
1. No sorting convention found for scope `Foo`. Register a convention with `AddConvention<ISortConvention, TYourConvention>("Foo")` on the schema builder. | ||
(HotChocolate.Data.Sorting.SortInputType<HotChocolate.Data.Tests.SortInputTypeTest.Foo>) |
6 changes: 6 additions & 0 deletions
6
...nputTypeTest.SortInputType_Should_ThrowException_WhenNoConventionIsRegisteredDefault.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
For more details look at the `Errors` property. | ||
|
||
1. For more details look at the `Errors` property. | ||
|
||
1. No default sorting convention found. Call `AddSorting()` on the schema builder. | ||
(HotChocolate.Data.Sorting.SortInputType<HotChocolate.Data.Tests.SortInputTypeTest.Foo>) |