Jordan Vohwinkel
12/16/2021, 2:32 AMconst select = {
id: true,
firstName: true,
middleName: true,
lastName: true,
email: true,
userGroups: {
select: {
groupId: true,
userId: true,
group: {
select: {
id: true,
name: true,
isActive: true
},
where: {
id: 1
}
}
},
where: {
groupId: 1
}
}
}
client.findMany({ select });
the where clause on “userGroups: works perfect, the where clause on “group” does not.
error: Unknown arg where
in select.userGroups.select.group.where for type group. Did you mean select
? Available args:type group {}
Is there a nesting limit?