-
Notifications
You must be signed in to change notification settings - Fork 44
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
UpdateMany${type} asks for ${type}UpdateManyMutationInput instead of ${type}UpdateInput #346
Comments
Hi @yukulelix Can you please also share your datamodel so that I can try to reproduce this? Also, we may transfer this to prisma bindings repository itself as it seems to be solely related to it. |
Hi @pantharshit00, thanks for your help :) enum ReviewAnalysisStatusType {
INITIAL
PENDING
DONE
}
type Review {
id: ID! @unique
key: String! @unique
createdAt: DateTime!
updatedAt: DateTime!
publishedAt: String
analysisStatus: ReviewAnalysisStatusType! @default(value: INITIAL)
} The javascript function that produces the error is : import { Prisma } from 'prisma-binding'
import typeDefs from '../../database/generated/prisma.graphql'
async function updateManyReviewsAnalysisStatus (keys, analysisStatus) {
const db = new Prisma({
typeDefs,
endpoint: "endpoint",
secret: "***"
})
return db.mutation.updateManyReviews(
{
where: { key_in: keys },
data: { analysisStatus }
},
'{ count }'
)
}
// Called like this
updateManyReviewsAnalysisStatus(["key-one", "key-two"], "PENDING") Thanks in advance ! |
Any news on this @pantharshit00 ? |
Hi I'm getting a very similar error! |
I'm experiencing this as well, I'm passing data as the docs say to do, I don't see anything about |
The bug
Hi there,
I'm having some issues using an updateMany mutation with prisma binding :
When the function runs, it's giving me this error :
But in the generated model, I have no trace of a ReviewUpdateManyMutationInput :
Versions (please complete the following information):
Thanks for your help !
The text was updated successfully, but these errors were encountered: