Skip to content

Instantly share code, notes, and snippets.

@kirkness
Created January 6, 2019 20:06
Show Gist options
  • Save kirkness/cbe3adbdb5f7f5a93bb355b9f64f7d2f to your computer and use it in GitHub Desktop.
Save kirkness/cbe3adbdb5f7f5a93bb355b9f64f7d2f to your computer and use it in GitHub Desktop.
const updateAnItem = (root, args, ctx) => {
return Item.update({ name: args.name }).where({ id: args.id, userId: ctx.userId });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment