Hi,
I want to delete a one row in the database with javascript: how do I do that?
As example I use:
Products_update.execute({body: {where: {ItemIDToUpdate: "8712566378614"}, operations: {$set: {ColumnX: varX} } } });
Where I can set a value in a cloumn X : "ColumnX": at row with ItemIDToUpdate equal to: 8712566378614,
The same question again now for deletion:
I want to delete a row with arow element "ItemIDToDelete equal to "8712566378614"
Can I use:
Code: Select all
Products_delete.execute({body: {where: {ItemIDToDelete: "8712566378614"}, operations: {$delete: {ColumnX: varX} } } });
????
and same question if I want to ADD a Item, can I use :
Code: Select all
Products_create.execute({body: {where: {ItemIDToCreate: "8712566378614"}, operations: {$set: {ColumnX: varX} } } });
Thanks,