-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add + configure uint graphql scalar type
- Loading branch information
1 parent
0cfb015
commit c5e1997
Showing
7 changed files
with
30 additions
and
11 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
9 changes: 7 additions & 2 deletions
9
...c/GraphQL/Scalars/CharFilterConvention.cs → ...src/GraphQL/GiantnodesFilterConvention.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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
using Giantnodes.Infrastructure.GraphQL.Scalars; | ||
using HotChocolate.Data.Filters; | ||
|
||
namespace Giantnodes.Infrastructure.GraphQL.Scalars; | ||
namespace Giantnodes.Infrastructure.GraphQL; | ||
|
||
public class CharFilterConvention : FilterConvention | ||
public sealed class GiantnodesFilterConvention : FilterConvention | ||
{ | ||
protected override void Configure(IFilterConventionDescriptor descriptor) | ||
{ | ||
base.Configure(descriptor); | ||
|
||
descriptor.BindRuntimeType<char, CharOperationFilterInputType>(); | ||
descriptor.BindRuntimeType<char?, CharOperationFilterInputType>(); | ||
|
||
descriptor.BindRuntimeType<uint, UnsignedIntOperationFilterInputType>(); | ||
descriptor.BindRuntimeType<uint?, UnsignedIntOperationFilterInputType>(); | ||
|
||
descriptor.AddDefaults(); | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
src/Infrastructure/src/GraphQL/Scalars/UnsignedIntOperationFilterInputType.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,13 @@ | ||
using HotChocolate.Data.Filters; | ||
using HotChocolate.Types; | ||
|
||
namespace Giantnodes.Infrastructure.GraphQL.Scalars; | ||
|
||
public sealed class UnsignedIntOperationFilterInputType : ComparableOperationFilterInputType<UnsignedIntType> | ||
{ | ||
protected override void Configure(IFilterInputTypeDescriptor descriptor) | ||
{ | ||
descriptor.Name("UnsignedIntOperationFilterInput"); | ||
base.Configure(descriptor); | ||
} | ||
} |
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