User table has a column called "name" and req.body.key = name.
I don't want to write name = req.body.value.
How do i somehow interpolate req.body.key?
"{req.body.key}" doesn't work and console throws User.{req.body.key} does not exist.
function(req, res, next) {
User.findAll({
where: {
//Question HERE
req.body.key : req.body.value
}
}).then(...).catch(...)
}