Skip to content

Commit 50aaedb

Browse files
committed
Adds Json instance to GqlType
1 parent f9fa0cc commit 50aaedb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/GraphQL/Client/GqlType.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module GraphQL.Client.GqlType where
22

3+
import Data.Argonaut.Core (Json)
34
import Data.Maybe (Maybe)
45
import GraphQL.Client.Args (NotNull)
56
import GraphQL.Client.AsGql (AsGql)
@@ -13,6 +14,7 @@ instance GqlType Boolean "Boolean"
1314
instance GqlType Int "Int"
1415
instance GqlType Number "Float"
1516
instance GqlType String "String"
17+
instance GqlType Json "Json"
1618

1719
instance GqlType t gqlName => GqlType (Maybe t) gqlName
1820
instance GqlType t gqlName => GqlType (NotNull t) gqlName

0 commit comments

Comments
 (0)