Closed sblomstrand closed 4 months ago
I tried the above work around in HotChocolate 12.12.1, but it resulted in the following error message: "Unable to convert type from Object
to Guid
" at HotChocolate.Utilities.DefaultTypeConverter.Convert(Type from, Type to, Object source).
Is this still being worked on?
Optional does also not work for Lists of ids on Input object types. Regardless whether the id is a guid or a string. It always produces the error The IDs have an invalid format.
After some investigation the error is in the GlobalIdInputValueFormatter -> CreateListFactory. This checks if the IsArrayOrList
property of the resultType which is false if it is wrapped in an Optional<>
@PascalSenn since @BickelLukas was able to look into why this is happening, can we get this fixed?
Any status on this?
Fixed in #7255 and/or #7256.
Is there an existing issue for this?
Describe the bug
Input properties using
[ID]
andOptional
fails with messageThe IDs {...} have an invalid format.
Steps to reproduce
Current workaround is to instead use
Relevant log output
No response
Additional Context?
No response
Product
Hot Chocolate
Version
12.4.1, 12.7.0