use pre-made type to avoid confusion

This commit is contained in:
silky 2023-06-23 20:14:22 +01:00 committed by Noon van der Silk
parent 1521fdb738
commit fe57e2e606

View File

@ -99,15 +99,7 @@ graphQL
:: Endpoint
-> Array RequestHeader
-> AffjaxDriver
-> ( forall (operation :: GraphQL) (gql :: Symbol) (i :: Row Type) (o :: Row Type)
. GraphQLReqRes operation gql i o
=> IsSymbol gql
=> JSON.WriteForeign { | i }
=> JSON.ReadForeign { | o }
=> Gql operation
-> Record i
-> Aff { | o }
)
-> GraphQLClientAff
graphQL endpoint headers driver = graphQL'
endpoint
headers
@ -175,4 +167,4 @@ graphQL' endpoint headers' driver = go
, response
}
)
Right ({ data: d } :: { data :: { | o } }) -> pure d
Right ({ data: d } :: { data :: { | o } }) -> pure d