Module
Prospero.Wrapper
- Package
- purescript-prospero
- Repository
- rowtype-yoga/purescript-prospero
#Wrapper Source
data Wrapper :: Type -> Row Type -> Typedata Wrapper ctx errs
A collection of wrappers that can be applied to a schema
Constructors
WrapOverall (OverallWrapper ctx errs)WrapParsing ParsingWrapperWrapValidation ValidationWrapperWrapExecution (ExecutionWrapper ctx errs)WrapField (FieldWrapper ctx errs)WrapIntrospection (IntrospectionWrapper ctx errs)
#OverallWrapper Source
type OverallWrapper :: Type -> Row Type -> Typetype OverallWrapper ctx errs = (String -> Om ctx errs GraphQLResponse) -> String -> Om ctx errs GraphQLResponse
Overall wrapper: wraps the entire query processing pipeline
#ValidationWrapper Source
type ValidationWrapper = (Array Selection -> Array GraphQLError) -> Array Selection -> Array GraphQLErrorValidation wrapper: wraps query validation
#ExecutionWrapper Source
type ExecutionWrapper :: Type -> Row Type -> Typetype ExecutionWrapper ctx errs = (Array Selection -> Om ctx errs ResponseValue) -> Array Selection -> Om ctx errs ResponseValue
Execution wrapper: wraps query execution
#FieldWrapper Source
data FieldWrapper :: Type -> Row Type -> Typedata FieldWrapper ctx errs
Field wrapper: wraps individual field resolution
Constructors
FieldWrapper (String -> String -> Om ctx errs ResponseValue -> Om ctx errs ResponseValue)
#IntrospectionWrapper Source
type IntrospectionWrapper :: Type -> Row Type -> Typetype IntrospectionWrapper ctx errs = (Array Selection -> Om ctx errs ResponseValue) -> Array Selection -> Om ctx errs ResponseValue
Introspection wrapper: wraps introspection queries
#wrapOverall Source
wrapOverall :: forall ctx errs. OverallWrapper ctx errs -> Wrapper ctx errs#wrapParsing Source
wrapParsing :: forall ctx errs. ParsingWrapper -> Wrapper ctx errs#wrapValidation Source
wrapValidation :: forall ctx errs. ValidationWrapper -> Wrapper ctx errs#wrapExecution Source
wrapExecution :: forall ctx errs. ExecutionWrapper ctx errs -> Wrapper ctx errs#wrapField Source
wrapField :: forall ctx errs. FieldWrapper ctx errs -> Wrapper ctx errs#wrapIntrospection Source
wrapIntrospection :: forall ctx errs. IntrospectionWrapper ctx errs -> Wrapper ctx errs#maxCostFor Source
maxCostFor :: forall ctx errs gql. { query :: GqlType | gql } -> Int -> Wrapper ctx errs#logSlowFields Source
logSlowFields :: forall ctx errs. Int -> Wrapper ctx errsPre-built wrapper: log fields that take longer than a threshold (in milliseconds)
- Modules
- Dev.
Client - Dev.
Schema - Dev.
Server - Prospero
- Prospero.
Bun - Prospero.
CacheControl - Prospero.
Client - Prospero.
Client. GqlUnion - Prospero.
Client. WebSocket - Prospero.
Codegen - Prospero.
Codegen. Main - Prospero.
Crypto - Prospero.
DataLoader - Prospero.
Defer - Prospero.
Directive - Prospero.
Execution - Prospero.
Fastify - Prospero.
Federation - Prospero.
GqlQuery - Prospero.
GqlTypes - Prospero.
GraphQLError - Prospero.
GraphQLWS - Prospero.
Http - Prospero.
InputValue - Prospero.
Introspection - Prospero.
Metadata - Prospero.
Om - Prospero.
Parser - Prospero.
Parser. AST - Prospero.
Parser. GraphQL - Prospero.
Parser. Lexer - Prospero.
Parser. Monad - Prospero.
Parser. Token - Prospero.
PersistedQueries - Prospero.
Relay - Prospero.
ResponseValue - Prospero.
RootResolver - Prospero.
SDL - Prospero.
Scalars - Prospero.
Schema - Prospero.
SchemaTransform - Prospero.
Step - Prospero.
Subscription - Prospero.
Tracing - Prospero.
Types - Prospero.
Upload - Prospero.
Validation - Prospero.
VariantHelper - Prospero.
WebSocket - Prospero.
Wrapper