Skip to content

Instantly share code, notes, and snippets.

@coffeemug
Created October 7, 2014 19:08
Show Gist options
  • Save coffeemug/06a8c44b4c8e20d8fa06 to your computer and use it in GitHub Desktop.
Save coffeemug/06a8c44b4c8e20d8fa06 to your computer and use it in GitHub Desktop.
Grab top stories into RethinkDB via Hacker News API
r.http("https://hacker-news.firebaseio.com/v0/topstories.json").limit(5).map(
r.http(r.add("https://hacker-news.firebaseio.com/v0/item/",
r.row.coerceTo('string'),
".json"))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment