The terminology used on this question is probably not the most correct one but I hope you get the idea of what I'm asking.
If I have two asynchronous functions fetching and then updating a certain column from a certain row, is it possible for one of them to have fetched the non updated value? Or are the queries made in a way that they await for the other function to update the value before fetching it?
Yes it's possible for both conditions. If you want to fetch column first use and then update column try let row = await model.Rows.findOne(where:condition); let UpdateRow = await row.update(column); in other case try this let updateRow = await model.Rows.update('column'{ where:condition}); let row = await model.Rows.findOne({where:condition]);