I cant understand how to use findOne and then update the attributes of returning instance
web has variety of answers: using findOne.then, using findOne.success, using update() on return, or updateAttribute
someone also wrote that update has to include "where" inside of it
so i am a bit confused, what is the right way to do it
Also, i've tried to use Upsert but received an error: Unhandled rejection TypeError: user.upsert is not a functionI'd like to use "insert or update" but can't find a good example on Sequelize documentations
Can anyone please kindly assist?