resolveOperationSubject
Function: resolveOperationSubject()
resolveOperationSubject(
context,operation,args,result?):OperationSubject
Defined in: packages/core/src/core/operations.ts:200
Find the object an operation targets
- model instance operation: the model and the key it was called with
- operation with
context.model(DomainService CRUD, behaviors): the key fields from the resolved input or the request parameters, or forCreatethe created object - queries, static model operations and plain service operations: none
Parameters
context
the operation context
operation
the operation definition
args
any[]
the arguments the operation was called with
result?
any
the operation result, when it succeeded
Returns
the subject, or undefined when the operation has no single target