ExecInput: {
    args: any[];
    entity: string;
    options?: Partial<MeshDataWorkflowOptions>;
}

Executes a remote function by its global entity identifier with specified arguments. If options.ttl is infinity, the function will be cached indefinitely and can only be removed by calling flush. During this time, the function will remain active and can its state can be augmented by calling set, incr, del, etc OR by calling a transactional 'hook' function.

Type declaration

  • args: any[]

    the function's input arguments

    ['Jane', 'Doe']
    
  • entity: string

    the connected function's entity identifier

    user
    
  • Optionaloptions?: Partial<MeshDataWorkflowOptions>

    Extended options for the hook function, like specifying a taskQueue or ttl

    { ttl: '5 minutes' }
    

The expected return type of the remote function.