higherkindness / mu-haskell

Mu (μ) is a purely functional framework for building micro services.
http://higherkindness.io/mu-haskell/
Apache License 2.0
333 stars 19 forks source link

`IntrospectSchemaFieldType` instance for `UUID` #346

Open rynoV opened 1 year ago

rynoV commented 1 year ago

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