I checked other mutations for example the createMany and noticed that in the resolver the first argument had _query, so I tried adding that to the updateMany resolver and it worked!!
My updateMany mutation now looks like this but is complaining
I'm not sure if I'm doing something wrong. I'm using the same versions recommended in the readme.
I'm getting this error when trying to use updateMany (salesOrder is the name of my prisma model)
I went to the the generated mutation file and console.log the
_context
object from the resolver, and indeed didn't have the prisma object in it.I checked other mutations for example the createMany and noticed that in the resolver the first argument had
_query
, so I tried adding that to the updateMany resolver and it worked!!My updateMany mutation now looks like this but is complaining
I'm not sure if I'm doing something wrong. I'm using the same versions recommended in the readme.