From 50aaedbb95b7c180bf969ef49dc868d8e48142be Mon Sep 17 00:00:00 2001 From: Finn Hodgkin Date: Tue, 17 Sep 2024 09:42:01 +0100 Subject: [PATCH] Adds Json instance to GqlType --- src/GraphQL/Client/GqlType.purs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GraphQL/Client/GqlType.purs b/src/GraphQL/Client/GqlType.purs index 1f832bb..935ac08 100644 --- a/src/GraphQL/Client/GqlType.purs +++ b/src/GraphQL/Client/GqlType.purs @@ -1,5 +1,6 @@ module GraphQL.Client.GqlType where +import Data.Argonaut.Core (Json) import Data.Maybe (Maybe) import GraphQL.Client.Args (NotNull) import GraphQL.Client.AsGql (AsGql) @@ -13,6 +14,7 @@ instance GqlType Boolean "Boolean" instance GqlType Int "Int" instance GqlType Number "Float" instance GqlType String "String" +instance GqlType Json "Json" instance GqlType t gqlName => GqlType (Maybe t) gqlName instance GqlType t gqlName => GqlType (NotNull t) gqlName