UpdateResult

The add(), createUser(), modify(), upsert(), and delete() commands return an array of UpdateResult objects.

An UpdateResult object has the following properties:

Name

Type

Description

errors

oaError[]

An array of oaError objects (see Error).

If an error occurred, the add(), createUser(), modify(), upsert(), or delete() command returns an array of one or more oaError objects providing the error code and description.

id

string

The internal ID of the record created, deleted, or updated

objects

oaBase[]

An array of oaBase objects.

status

string

If the operation is successful, a one-letter code indicating that the record was added [A], deleted [D], or updated [U].

Otherwise, -1 if one or more errors occurred.