Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async used in feed: but not in post: #1184

Closed
maxxafari opened this issue Nov 2, 2020 · 1 comment · Fixed by #1359
Closed

async used in feed: but not in post: #1184

maxxafari opened this issue Nov 2, 2020 · 1 comment · Fixed by #1359

Comments

@maxxafari
Copy link

is there a reason for Query feed: to use async but not Mutation Post:?

In my testing both seem to work. But while reading its a bit confusing why async is used in one case and not in the other.

feed: async (parent, args, context) => {
      return context.prisma.link.findMany()
 post: (parent, args, context) => {
      const newLink = context.prisma.link.create({
...
return newLink
@TasinIshmam
Copy link
Contributor

Thanks for bringing this up. Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants