Skip to content

Commit

Permalink
Adds Json instance to GqlType
Browse files Browse the repository at this point in the history
  • Loading branch information
finnhodgkin committed Sep 17, 2024
1 parent f9fa0cc commit 50aaedb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GraphQL/Client/GqlType.purs
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 50aaedb

Please sign in to comment.