Hi, I am currently following this tutorial series Step 6. Add new post functionality. However, when I want to make a Draft, I got these error message and I'm stuck here:
Invalid `prisma.post.create()` invocation:
code: 'P2025',
clientVersion: '2.19.0',
meta: {
cause: "No 'User' record(s) (needed to inline the relation on 'Post' record(s)) was found for a nested connect on one-to-many relation 'PostToUser'."
}
}
Hi, I am currently following this tutorial series Step 6. Add new post functionality. However, when I want to make a Draft, I got these error message and I'm stuck here:
And this is my code:
create.tsx
index.ts
schema.prisma
Can you help me out? Thank's.