Re:RethinkDB example apps
by arethuza on Saturday February 02, 2013 @04:50AM
(#5155638)
I actually prefer the first of those - I find it easy to read than the second one - probably because the calls are chained rather than being nested.
[ Parent
| on HN ]
Alternatively, you could do this:
g.rdb_conn.table('todos').get(todo_id).run()
On the other hand, this form ties the request to the connection, which neither the current API or my original suggestion do.