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
ID type deserialization fix with field tests (#427)
* Fixed deserialization of ID type
Deserialization of ID types caused an exception if the field was
nullable.
* Added fields for testing
---------
Co-authored-by: Håkan Thörngren <hth313@gmail.com>
Define.Field("guidId", IDType, description ="A Guid Id value.", resolve =fun _ o -> o.Guid |> string)
79
+
Define.Field("stringId", IDType, description ="A String Id value.", resolve =fun _ o -> o.String)
80
+
Define.Field("guidIdOption", Nullable IDType, description ="A Guid Id value.", resolve =fun _ o -> o.GuidOption |> Option.map string)
81
+
Define.Field("stringIdOption", Nullable IDType, description ="A String Id value.", resolve =fun _ o -> o.StringOption)
77
82
Define.Field("deprecated", StringType, resolve =(fun _ x -> x.String), description ="A string value through a deprecated field.", deprecationReason ="This field is deprecated.", args =[])])
0 commit comments