Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Error with method update: Urgent please - Prisma
P
Prisma
•
2y ago
•
2 replies
Mickaël
Error with method update: Urgent please
Hello I have an error that should not occur
Why I get this
?
Error updating sign
:
Invalid
prisma.document.update()
prisma.document.update()
invocation
:
{
where
:
{
idDocument
: undefined
,
? AND
?
: DocumentWhereInput
| DocumentWhereInput
[
]
,
? OR
?
: DocumentWhereInput
[
]
,
? NOT
?
: DocumentWhereInput
| DocumentWhereInput
[
]
,
? name
?
: StringFilter
| String
,
? isSigned
?
: BoolFilter
| Boolean
,
? hash
?
: StringFilter
| String
,
? url
?
: StringFilter
| String
,
? createdAt
?
: DateTimeFilter
| DateTime
,
? idEnvelope
?
: StringFilter
| String
,
? envelope
?
: EnvelopeRelationFilter
| EnvelopeWhereInput
,
? signs
?
: SignListRelationFilter
}
,
data
:
{
isSigned
: true
}
}
Argument
where
where
of type DocumentWhereUniqueInput needs at least one of
idDocument
idDocument
arguments
. Available options are marked with
?
.
Here the code
const updatedSign
= await prisma
.sign
.update
(
{
where
:
{
idDocument
_idSignatory
:
{
idDocument
,
idSignatory
: signatory
.idSignatory
,
}
,
}
,
data
:
{
hasSigned
: true
,
}
,
}
)
;
All the data is correct because I made a console
.log before and it work perfectly
.
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
[Urgent] Please remove the suspended status
P
Prisma / help-and-questions
2mo ago
`client.metrics()` Error: Method not implemented.
P
Prisma / help-and-questions
6mo ago
Urgent Database restore
P
Prisma / help-and-questions
5mo ago