I want to be able to receive the plain raw object after calling Model.create
on Sequelize, the object itself that was created, no metadata or any other things. Just
Model.create(modelObject)
.then((resultEntity) => {
const dataObj = resultEntity.get({plain:true})
}
Like mentioned before or if you want to keep with async/await syntax go for:
const myResultVar = (await Model.create(modelObject)).get({plain:true})
Basically the same thing just not leaving the async/await syntax behind :)