David Marr
03/19/2022, 7:35 PMActivity
model, that has a relation field to Provider
. I'm stuck at the very beginning trying this:
const stars = await getActivity();
await prisma.activity.upsert({
where: {
providerId: 2
}
});
David Marr
03/19/2022, 7:35 PMType '{ providerId: number; }' is not assignable to type 'ActivityWhereUniqueInput'.
Object literal may only specify known properties, and 'providerId' does not exist in type 'ActivityWhereUniqueInput'
David Marr
03/19/2022, 7:37 PMActivityWhereUniqueInput
it only has an id
field