我正在尝试使用prism -node js编写一些连接。
where: {
Account: {
active: true,
},
User: {
UserNotificationsSetup: {
aaa: true,
},
UserNotificationsFrequencySetup: {
daily: true,
},
},
},
distinct: ['accountId'],
select: {
Account: {
select: {
networkId: true,
},
},
},
});
Prisma不喜欢UserNotificationsSetup
:
Type '{aaa: true;}'不能赋值给类型'undefined'
您确定您的关系在您的prisma.schema
中是正确的吗?