-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from byme8/feature/array-type-replacement
Fix type replacement inside the nullable array.
- Loading branch information
Showing
4 changed files
with
75 additions
and
46 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...ZeroQL.Tests/Bootstrap/CustomSchemaParseTests.IdenticalNamesForArrayReplaced.verified.txt
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,21 @@ | ||
[ | ||
[ZeroQL.GraphQLType("Staff")] | ||
[System.CodeDom.Compiler.GeneratedCode ( "ZeroQL" , "1.0.0.0" )] | ||
public class StaffZeroQL | ||
{ | ||
[ZeroQL.GraphQLName("id")] | ||
[JsonPropertyName("id")] | ||
public int Id { get; set; } | ||
|
||
[JsonPropertyName("staff")] | ||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] | ||
public StaffZeroQL? []? __Staff { get; set; } | ||
|
||
[ZeroQL.GraphQLName("staff")] | ||
public T?[]? Staff<T>(Func<StaffZeroQL, T> selector = default !) | ||
{ | ||
return __Staff?.Select(o => o is null ? default : selector(o)).ToArray(); | ||
} | ||
} | ||
|
||
] |
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