Module

GraphQL.Client.ErrorBoundary

Package
purescript-graphql-client
Repository
OxfordAbstracts/purescript-graphql-client

#ErrorBoundary Source

newtype ErrorBoundary a

Constructors

#PropPutErrorsInPaths Source

#decodeWith Source

decodeWith :: forall res m. Applicative m => (Json -> Either JsonDecodeError res) -> Json -> m (BoundaryResult Unit res)

#putErrorsInPaths Source

putErrorsInPaths :: forall a b. PutErrorsInPaths a b => Array GqlError -> a -> b

#toEither Source

toEither :: forall err a. BoundaryResult err a -> Either err a