Refactor: Remove dottie.transform from raw queries
Currently we transform raw queries so they become nested objects. Imo we shouldn't do this, if the user asks for raw, let's give provide raw.
This would be helpful to retain as an option. We often use raw to get a more quickly generated object that skips all the DAO overhead but retains basic object nesting.
@seth-admittedly hmm i didn't think anyone actually used this. I suppose we could hide it behind a flag.
This is the feature where if I do
orm.User.find({where : {name : "Seth"}, include : [orm.Dog]}, {raw : true})
I'll get an object back in success
{name : "Seth", dog : {name : "Fido"}}
right?
Yea that's right.
Yep, we definitely use that for some of our data work where we just need a simple included model without the DAO.
@seth-admittedly alright, i'll keep that in mind.
@seth-admittedly https://github.com/sequelize/sequelize/pull/2064 dottie.transform now needs nest: true to work, from next 2.0.0 release/master
Excellent, will make sure to add the flag on the next upgrade
I'm using this feature, thanks for keeping it as an option!