I’m spending a lot (read: “waaay to many”) time learning GraphQL. One of the things I had to figure out was how to use Guids inside my GraphQL schema.
On one of my projects we are using Guids. Here is the mapping I tried to use:
When loading my GraphQL endpoint this resulted in the following error message:
The type: Guid cannot be coerced effectively to a GraphQL type
To fix it I had to explicitly specify the FieldType as IdType: