hi there, i am new to prisma and i am using v2. we...
# orm-help
j
hi there, i am new to prisma and i am using v2. we are just getting started. and i have an issue which does not make sense to me. I want to create a new item which has a relation to an entity called brand. When i do want to create an item i get the following error message:
Copy code
Unknown arg `brand_id` in data.brand_id for type ....CreateInput. Did you mean `brands`?
while my schema and my model clearly has the member
brand_id
. I know there is an alternative method with using
connect
though i actually don’t want to use it. als the TS typing shows an XOR between these two variants. Any clues?
Ok. i had another relation, which was required, though not provided. Had to change the db column to nullable. The error message is a little bit misleading.
👍 1