SpicyJungle
Explore posts from serversPPrisma
•Created by SpicyJungle on 7/9/2024 in #help-and-questions
Typescript one to many relation
I'm trying to create a record like this:
However, typescript complains about the trimorders field:
Type '{ id: number; ticker: string; price: number; dir: string; shares: number; userid: number; }[]' is not assignable to type 'TrimOrdersUncheckedCreateNestedManyWithoutLimitInput | TrimOrdersCreateNestedManyWithoutLimitInput | undefined'.
These are the schemas:
3 replies