Skip to content

Commit

Permalink
Fixed minor input serialization issue (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Sep 3, 2018
1 parent 6a2b153 commit c9864d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Types/Types/InputObjectDefaultDeserializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ private static void DeserializeProperty(
{
if (property.PropertyType.IsAssignableFrom(field.Type.NativeType))
{
property.SetValue(nativeInputObject, field.Type.ParseLiteral(literal));
property.SetValue(nativeInputObject, field.Type.ParseLiteral(
literal ?? NullValueNode.Default));
}
else
{
Expand Down

0 comments on commit c9864d2

Please sign in to comment.