const person = {
firstName: "Sylvain",
lastName: "PONTOREAU",
email: "
[email protected]"
};
const { body } = await container
.items
.create(person);
if(body !== undefined) {
console.log(body.id);
}
const item = await container
.item(body.id);
const { body: readDoc } = item.read();
readDoc.email = "
[email protected]";
await item.replace(readDoc);
await item.delete();
Persistence