Skip to content

Commit

Permalink
Merge pull request #139 from OxfordAbstracts/json-instance
Browse files Browse the repository at this point in the history
Adds Json instance to GqlType
  • Loading branch information
roryc89 authored Sep 25, 2024
2 parents f9fa0cc + 50aaedb commit 4588c4d
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 4588c4d

Please sign in to comment.