Implicit many-to-many problems
and I have this piece of code:
Which throws this prisma error:
Everything is fully typed out by the TS language server with no warnings or errors. I also double-checked my seed outputs, as well as my migrations:
I'm just trying to seed my database to develop against, and for some reason this is the only relational query that has truly stumped me as I have nothing to go on at this point after combing through the docs and double-checking my work. I'm looking for any hint to get past this, thanks in advance for your time.
Solution:Jump to solution
Turns out, for whatever reason the input to
createMany
doesn't include relational fields? I'm too busy to look into it further, but here is the updated code which succeeded for anyone that might be wondering:
```ts
const dealers = () => {
const dealers: Prisma.DealerCreateInput[] = [];
...1 Reply
Solution
Turns out, for whatever reason the input to
createMany
doesn't include relational fields? I'm too busy to look into it further, but here is the updated code which succeeded for anyone that might be wondering: