MinatoTW
MinatoTW
PPrisma
Created by MinatoTW on 12/12/2024 in #help-and-questions
field reference help
hello I have models like this
model Player {
team Int[]
monsters Monster[]
}

model Monster {
id Int
name String
}
model Player {
team Int[]
monsters Monster[]
}

model Monster {
id Int
name String
}
how do I select player.monsters where id is in player.team[] I tried
monsters: { where: { id: { in: player.fields.team } } }
monsters: { where: { id: { in: player.fields.team } } }
but that's throwing type errors
6 replies