DEV Community

Discussion on: "Synchronous" fetch with async/await

Collapse
 
dimitir profile image
Dmitriy Popovich • Edited

(async () => {
const todo = await Model.create(
{
//data
}
);
const todoItem = await todo.save();

})();