core.test_2
Home > @medplum/core > test_2
test_2() function
The "test" operation tests that a value at the target location is equal to a specified value. The operation object MUST contain a "value" member that conveys the value to be compared to the target location's value. The target location MUST be equal to the "value" value for the operation to be considered successful.
Signature:
export declare function test(object: any, operation: TestOperation, _options?: PatchOptions): TestError | null;
Parameters
Parameter | Type | Description |
|---|---|---|
object | any | The object being patched. |
operation | The add operation to perform on the object. | |
_options | (Optional) Optional params. |
Returns:
TestError | null
null on success, or error if one occurred.