Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

IntrospectSchemaFieldType instance for UUID #346

@rynoV

Description

@rynoV

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:

instance IntrospectSchemaFieldType ('Mu.TPrimitive String) where
introspectSchemaFieldType _ _ = tNonNull $ tSimple "String"
instance IntrospectSchemaFieldType ('Mu.TPrimitive T.Text) where
introspectSchemaFieldType _ _ = tNonNull $ tSimple "String"
instance IntrospectSchemaFieldType ('Mu.TPrimitive JSON.Value) where
introspectSchemaFieldType _ _ = tNonNull $ tSimple "JSON"
instance IntrospectSchemaFieldType ('Mu.TPrimitive JSON.Object) where
introspectSchemaFieldType _ _ = tNonNull $ tSimple "JSONObject"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions