Skip to content

Commit

Permalink
Update README to reflect correct handling of native map function (#3704
Browse files Browse the repository at this point in the history
…) (#3845)
  • Loading branch information
skreis committed May 7, 2020
1 parent 8956b44 commit ee72526
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ knex.schema
.select('users.user_name as user', 'accounts.account_name as account')
)

// .map over the results
.map(row => {
console.log(row)
})
// map over the results
.then(rows =>
rows.map(row => {
console.log(row)
})
)

// Finally, add a .catch handler for the promise chain
.catch(e => {
Expand Down

0 comments on commit ee72526

Please sign in to comment.