mu-haskell icon indicating copy to clipboard operation
mu-haskell copied to clipboard

`IntrospectSchemaFieldType` instance for `UUID`

Open rynoV opened this issue 2 years ago • 0 comments

After adding an input with a UUID field, for example:

scalar UUID

input MyInput {
  id: UUID!
}

I get

Could not deduce (mu-graphql-0.5.0.4:Mu.GraphQL.Query.Introspection.IntrospectSchemaFieldType
                          ('TPrimitive UUID))

Would it be possible to add this instance? I'm guessing it would be here:

https://github.com/higherkindness/mu-haskell/blob/3d0a80e3743fc2145897abc01266788d52b27573/graphql/src/Mu/GraphQL/Query/Introspection.hs#L360-L367

rynoV avatar Feb 04 '23 19:02 rynoV