I'm running into an issue trying to "upsert many" ...
# prisma-client
d
I'm running into an issue trying to "upsert many" records. I have an
Activity
model, that has a relation field to
Provider
. I'm stuck at the very beginning trying this:
Copy code
const stars = await getActivity();
await prisma.activity.upsert({
  where: {
    providerId: 2
  }
});
The error:
Copy code
Type '{ providerId: number; }' is not assignable to type 'ActivityWhereUniqueInput'.
  Object literal may only specify known properties, and 'providerId' does not exist in type 'ActivityWhereUniqueInput'
When I inspect
ActivityWhereUniqueInput
it only has an
id
field