graphql-platform
graphql-platform copied to clipboard
DefaultTypeConverter does not follow documention with regards to UUID Type
Product
Hot Chocolate
Version
15.1.11
Link to minimal reproduction
https://github.com/ChilliCream/graphql-platform/blob/8d40687968d29242710d26281b69b7a16913315e/src/HotChocolate/Core/src/Types/Utilities/DefaultTypeConverter.Setup.cs#L98
Steps to reproduce
The documentation states that the default serialization format is "D" (00000000-0000-0000-0000-000000000000).
But if the AnyType is specified, it will end up in the DefaultTypeConverter. Which has the Guid format registered as:
registry.Register<Guid, string>(from => from.ToString("N"));
What is expected?
DefaultTypeConvert follows documented defaults for UUID.
What is actually happening?
DefaultTypeConvert does not follow documented defaults for UUID.
Relevant log output
Additional context
No response