-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nullability of generated fields (#1724)
- Loading branch information
Showing
38 changed files
with
541 additions
and
42 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ input InputMessage | |
return builder; | ||
} | ||
} | ||
|
17 changes: 17 additions & 0 deletions
17
...te_InputType_with_listof_nullable_class#Global.SourceGeneratedTypesExtensions.verified.cs
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,17 @@ | ||
//HintName: Global.SourceGeneratedTypesExtensions.cs | ||
using System; | ||
using System.Threading.Tasks; | ||
using Microsoft.Extensions.Options; | ||
using Tanka.GraphQL.Server; | ||
using Tanka.GraphQL.Executable; | ||
using Tanka.GraphQL.ValueResolution; | ||
using Tanka.GraphQL.Fields; | ||
|
||
public static class GlobalSourceGeneratedTypesExtensions | ||
{ | ||
public static SourceGeneratedTypesBuilder AddGlobalTypes(this SourceGeneratedTypesBuilder builder) | ||
{ | ||
builder.AddInputMessageInputType(); | ||
return builder; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...peFacts.Generate_InputType_with_listof_nullable_class#InputMessageInputType.g.verified.cs
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,30 @@ | ||
//HintName: InputMessageInputType.g.cs | ||
using System; | ||
using System.Threading.Tasks; | ||
using Microsoft.Extensions.Options; | ||
using Tanka.GraphQL.Server; | ||
using Tanka.GraphQL.Executable; | ||
using Tanka.GraphQL.ValueResolution; | ||
using Tanka.GraphQL.Fields; | ||
|
||
|
||
|
||
public static class InputMessageInputTypeExtensions | ||
{ | ||
public static SourceGeneratedTypesBuilder AddInputMessageInputType( | ||
this SourceGeneratedTypesBuilder builder) | ||
{ | ||
builder.Builder.Configure(options => options.Builder.Add( | ||
""" | ||
input InputMessage | ||
{ | ||
content: [Person] | ||
} | ||
""" | ||
) | ||
); | ||
|
||
return builder; | ||
} | ||
} | ||
|
Oops, something went wrong.