Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var p=r.connect(options);
  2.  
  3. p.then(function(connection){
  4.     return r.table('sometable').get("some_uuid").run(connection)
  5. }).then(function(res){
  6.     //do stuff with res
  7.  
  8. }).then(
  9. //Here's where I'm lost. How would I get the connection?
  10. //I'd like to do something like r.table('othertable').getAll(...)
  11. ).error(console.log)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement