Skip to main content

useSystem

@webda/core


Function: useSystem()

useSystem<T>(input?): GlobalOperationContext

Defined in: packages/core/src/contexts/globaloperationcontext.ts:66

Create a system operation context, to call an operation as the system

const ctx = useSystem({ full: true });
await callOperation(ctx, "Service.Method");

Type Parameters​

T​

T = any

Parameters​

input?​

T

the operation input, serialized as JSON

Returns​

GlobalOperationContext

a new system operation context