- Preparing search index...
- The search index is not available
Kosmos v26.1.1
Type alias BehaviourResolverWrapper<TInstanceConfig, TSource, TArgs, TReturn>
Behaviour
Resolver
Wrapper
<TInstanceConfig, TSource, TArgs, TReturn>: ((schemaItem
: SchemaItem, behaviourName
: string, behaviourResolver
: BehaviourGraphQlResolver<TInstanceConfig, TSource, TArgs, TReturn>) => KosmosGraphQLResolver<TSource, TArgs, TReturn>)
Type Parameters
-
-
TSource = any
-
TArgs = Record<string, any>
-
TReturn = Promise<any>
The Behaviour resolver wrapper callback type.
Wraps Behaviour resolver callback and returns normal GraphQL resolver callback which could be used with Apollo server.
The wrapper callback is responsible for determining which instance of Behaviour should be called (and if it should be called at all), retrieving the configuration from BehavioursInstanceManager etc.