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:
1 Reply
What are you passing in the
limit
and allTrimorders
variable?