Example
Constructors
Constructor
new Module(Defined in: src/app/module.ts:81 Creates a new Module instancename,options):Module
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | The unique name of the module. This name is used to namespace queries, mutations, cron jobs and configuration values with a prefix (e.g. “todo.create”) |
options | { channels?: ServerChannel<unknown>[]; configSchema?: ConfigSchema; cronJobs?: Record<string, CronJobInputParams>; mutations?: Mutations; queries?: Queries; rateLimits?: RateLimitRule[]; routes?: RouteDefinition[]; stores?: Store<any, any>[]; } | Module configuration options |
options.channels? | ServerChannel<unknown>[] | - |
options.configSchema? | ConfigSchema | - |
options.cronJobs? | Record<string, CronJobInputParams> | - |
options.mutations? | Mutations | - |
options.queries? | Queries | - |
options.rateLimits? | RateLimitRule[] | - |
options.routes? | RouteDefinition[] | - |
options.stores? | Store<any, any>[] | - |
Returns
Module