All objects have the operation attribute. This indicates the type of rule that will be applied to the object.
Important to note that objects are returned in an array in the order they were executed.

{
    "operacao": "insert",
    "obj": { ... }
}

📘

TYPES OF OPERATION

insert: Insert/Update the object
update: Updates/Insert the object
delete: Remove an object

❗️

UPSERT PATTERN

To ensure best practices, always use the UPSERT technique when validating operations. So, whenever you receive an "update" type operation and the record doesn't exist, you must create the record. The same goes if the operation is an "insert" and the record already exists, in this case you must update the record.