TS2561
Object literal may only specify known properties, but 'playlistId' does not exist in type 'VideoWhereInput'. Did you mean to write 'playlists'?
Broken Code ❌
await prisma.video.deleteMany({
where: {
playlistId: playlistId,
},
});Solution:
Correct the property name in the object literal to match the expected property in the 'VideoWhereInput' type.
Fixed Code ✔️
await prisma.video.deleteMany({
where: {
playlists: playlistId,
},
});