Skip to content

Instantly share code, notes, and snippets.

@ebramanti
Last active February 18, 2016 00:11
Show Gist options
  • Save ebramanti/844acde859bf9db0c6b0 to your computer and use it in GitHub Desktop.
Save ebramanti/844acde859bf9db0c6b0 to your computer and use it in GitHub Desktop.
const getRobotData = function*() {
const robot = yield Robot.find({ name: 'Wheatley' });
const response = yield RobotDataAPI.get('/robots/' + robot.id);
return response.body.robot;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment