You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My graph ql models include some types that need encoding during serialisation For the existing REST APIs, I use the [JsonConverter] attribute. This doesn't appear to work. Is there a way to configure the JSON converters for HotChocolate?
public class User
{
[JsonConverter(typeof(IdConverter))]
public int UserId { get; set; }
...
}
public class IdConverter: JsonConverter<int>
{
...
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My graph ql models include some types that need encoding during serialisation For the existing REST APIs, I use the
[JsonConverter]
attribute. This doesn't appear to work. Is there a way to configure the JSON converters for HotChocolate?Beta Was this translation helpful? Give feedback.
All reactions