rethinkdb-example-nodejs icon indicating copy to clipboard operation
rethinkdb-example-nodejs copied to clipboard

a few more issues w/ example

Open ralyodio opened this issue 10 years ago • 2 comments

var result = yield r.table('todos').get(todo.id).update(todo, {returnVals: true}).run(this._rdbConn);

getting this message:

return_vals renamed to return_changes in: r.table("test").get("d53419a8-7a4c-4a8c-ab0c-338a8c677170").update({id: "d53419a8-7a4c-4a8c-ab0c-338a8c677170", name: "Joe2a"}, {returnVals: true})

ralyodio avatar May 18 '15 07:05 ralyodio

Thanks for reporting this @chovy .

As the error message says we renamed returnVals to returnChanges, and apparently forgot to update this example.

Pinging @deontologician

danielmewes avatar May 19 '15 18:05 danielmewes

Never mind, I opened a pull request https://github.com/rethinkdb/rethinkdb-example-nodejs/pull/13

danielmewes avatar May 19 '15 18:05 danielmewes