Skip to content

Client operations

Client operations modify a configured database or MongoDB target. They are target suffixes, not general-purpose scripts.

{client_id} stands for the ID of a client declared in <setup>, for example targetDB.

database

clear

Remove all records while retaining the table or collection itself.

Target form: target="{client_id}.clear"

delete

Delete records identified by the target client's write contract.

Target form: target="{client_id}.delete"

insert

Create a new row or document in the selected target entity.

Target form: target="{client_id}"

update

Update existing records identified by the target client's write contract.

Target form: target="{client_id}.update"

mongodb

clear

Remove all records while retaining the table or collection itself.

Target form: target="{client_id}.clear"

delete

Delete records identified by the target client's write contract.

Target form: target="{client_id}.delete"

drop

Remove the MongoDB collection itself, including all contained documents.

Target form: target="{client_id}.drop"

insert

Create a new row or document in the selected target entity.

Target form: target="{client_id}"

update

Update existing records identified by the target client's write contract.

Target form: target="{client_id}.update"

upsert

Update matching records or insert a new document when no match exists.

Target form: target="{client_id}.upsert"