So I'm having an issue - trying to add a row to ta...
# orm-help
a
So I'm having an issue - trying to add a row to table Entries, which has a linked column lotto_id to Lotto, however when I run this, it errors out. I've tried lotto and lotto_id
Turns out I had to capitalize Lotto
👍 1
However now, it's expecting a LottocreateoneWithoutentriesinput
And instead, I have an int input
I'm giving it value 12446 for example, which corresponds to this Lotto in the DB
r
Yeah it should be
Copy code
Lotto: {
  connect: { id: 12345 }
}
something like this to map to an existing record
a
I see
Okay, thank you.
I appreciate it