Module

Prospero.Fastify

Package
purescript-prospero
Repository
rowtype-yoga/purescript-prospero

#serveGraphQL Source

serveGraphQL :: forall ctxRow errs gql r rl err_ outerRow extra errs'. RowToList (exception :: Error -> Aff GraphQLResponse | r) rl => VariantMatchCases rl err_ (Aff GraphQLResponse) => Union err_ () (exception :: Error | errs) => Union ctxRow extra outerRow => Keys ctxRow => GraphQL (Record ctxRow) errs gql -> { exception :: Error -> Aff GraphQLResponse | r } -> Fastify -> Om (Record outerRow) errs' Unit

#runServeGraphQL Source

runServeGraphQL :: forall ctx errs gql r rl err_. RowToList (exception :: Error -> Aff GraphQLResponse | r) rl => VariantMatchCases rl err_ (Aff GraphQLResponse) => Union err_ () (exception :: Error | errs) => GraphQL ctx errs gql -> ctx -> { exception :: Error -> Aff GraphQLResponse | r } -> Fastify -> Effect Unit

#runSimple Source

runSimple :: forall a. Om (Record ()) SimpleErrs a -> Aff a

#simpleHandlers Source

simpleHandlers :: forall a. { exception :: Error -> Aff a, wrongArgumentType :: String -> Aff a }

#SimpleErrs Source

type SimpleErrs :: Row Typetype SimpleErrs = (wrongArgumentType :: String)