Skip to content

WriteAppInstance

Defined in: runtime/app.ts:74

  • BaseAppInstance

readonly events: Record<string, WriteEventPublishInstance>

Defined in: runtime/app.ts:75


readonly metrics: Record<string, MetricInstance>

Defined in: runtime/app.ts:47

BaseAppInstance.metrics


readonly mutations: Record<string, MutationHandlerInstance>

Defined in: runtime/app.ts:76


readonly prn: string

Defined in: runtime/app.ts:45

BaseAppInstance.prn


readonly queries: Record<string, QueryHandlerInstance>

Defined in: runtime/app.ts:46

BaseAppInstance.queries


readonly roles: Record<string, WriteAppRoleInstance>

Defined in: runtime/app.ts:77


readonly searches: Record<string, WriteSearchIndexInstance>

Defined in: runtime/app.ts:79


readonly templates: Record<string, WriteTemplate>

Defined in: runtime/app.ts:78


readonly unions: Record<string, WriteUnionInstance>

Defined in: runtime/app.ts:80


readonly workspaceId: string

Defined in: runtime/index.ts:39

BaseAppInstance.workspaceId

assertRole(role): true

Defined in: runtime/app.ts:53

Asserts that the current, active instance has the current role. If successful, this will return true. Otherwise it will throw an Error.

ReadAppRoleInstance

true

BaseAppInstance.assertRole


checkRole(role): boolean

Defined in: runtime/app.ts:59

Checks that the current, active instance has the current role; returning true/false if that role is present.

ReadAppRoleInstance

boolean

BaseAppInstance.checkRole


report(request): Promise<Readonly<{ report: MetricReportEntry; }>>

Defined in: runtime/app.ts:64

Executes a metric report.

MetricReportRequest

Promise<Readonly<{ report: MetricReportEntry; }>>

BaseAppInstance.report