Skip to content

Instantly share code, notes, and snippets.

@meshboy
Last active December 1, 2018 03:52
Show Gist options
  • Select an option

  • Save meshboy/42d9b25be2c781f6b6af24010afd3157 to your computer and use it in GitHub Desktop.

Select an option

Save meshboy/42d9b25be2c781f6b6af24010afd3157 to your computer and use it in GitHub Desktop.
const getRecipe = (root, { id }, { user }) => {
throwErrorIfUserNotAuthenticated(user);
return Recipe.findById(id).exec();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment