Hi everyone, how I can use the value of a relation...
# orm-help
k
Hi everyone, how I can use the value of a relationship to pass into where condition in another relationship (b_id: b.id)
Copy code
{
  select: {
    id: true,
    a: {
      where: {
        b_id: b.id
      },
      select: {
        id: true,
        name: true
      }
    },
    b: {
      select: {
        id: true,
        name: true
      }
    }
  }
}