Vote count:
0
I am new to Sequelize, so I have a very simple, perhaps trivial question. Consider the example on the docs:
var project = Project.build({
title: 'my awesome project',
description: 'woot woot. this will make me a rich man'
})
var task = Task.build({
title: 'specify the project idea',
description: 'bla',
deadline: new Date()
})
I want to make sure I either save both or none of them. How do I do that? In other words, how do I atomically perform creat/update operations on multiple tables?
asked 44 secs ago
Atomic operations in Sequelize
Aucun commentaire:
Enregistrer un commentaire