amaclean2 / SundayPeak

The repo for Sunday Peak
https://sundaypeak.com
2 stars 0 forks source link

Figure out inputs in mutations! #46

Closed amaclean2 closed 2 years ago

amaclean2 commented 2 years ago

Yes! Ordinarily when you pass in arguments to a mutation, you pass in

{
  variables: {
    ...arguments
  }
}

but when there's an input type in a mutation's arguments, you have to pass in

{
  variables: {
    input: {
      ...arguments
    }
  }
}

I made that change and it fixed the issue.