I am using Hot Chocolate
graphQL with .NET. In my Dto, I have one DatetimeOffset
field but when I see the schema on UI, I see DateTime
. I see the same even if I use [GraphQLType(typeof(DateTimeOffset))]
or [GraphQLType(typeof(DateTimeOffset?))]
.
How to fix this?
Code:
[GraphQLType(typeof(DateTimeOffset))]
public DateTimeOffset? EarliestPaymentDate { get; set; }
Schema: