Error: The relation BookAuthor has no node for the model Authir with the value 'x' for the field 'id' connected to a node for the model Book on your mutation path.
Expected behavior
Disconnecting something that is not connected should not fail with error, but should be silently ignored, at most log a warning.
Error message is not clear enough.
Prisma information
type Book {
...
author: Author
...
}
type Author {
...
books: [Book!]!
...
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Bug description
Error when disconnecting something that is not connected to anything with
disconnect: true
on Prisma V1How to reproduce
Mutate an object with an unexisting relation by using
disconnect: true
Example:
Data structure:
Object
Book
is related to objectAuthor
Data:
Book with
id:1
is NOT connected to an AuthorRepro
Try to disconnect the author from the book
id:1
Error:
Expected behavior
Disconnecting something that is not connected should not fail with error, but should be silently ignored, at most log a warning.
Error message is not clear enough.
Prisma information
Environment & setup
Prisma Version