Raw query resolution syntax change #297
Closed
Labels
Comments
Oh, I see. Let me fix that... |
Yeah the idea is that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It used to be that Knex.raw('query').then(function(results){}) would have results resolve as an object with a rows attribute. So if I do a complex SQL query and want to return the results, I'd do Helper.runQuery().then(function(results){res.send(results.rows)}).
Now I just send results, which is a breaking change (to be expected moving to the 0.6 version), but it's definitely worth noting if this was intended.
I don't know if this is a change in pg or knex.
The text was updated successfully, but these errors were encountered: