I’m trying to do a simple delete of a ‘Job’ with t...
# orm-help
r
I’m trying to do a simple delete of a ‘Job’ with this resolver in Mutations:
Copy code
deleteJob: async (parent, {id}) => {
      return await prisma.deleteJob({where: {id}})
    }
but I get the following error
Copy code
Variable '$where' expected value of type 'JobWhereUniqueInput!' but got: {"where":{"id":"cjt7klf3q5lyc0b79ayuloctr"}}. Reason: 'where' Field 'where' is not defined in the input type 'JobWhereUniqueInput'. (line 1, column 11):
mutation ($where: JobWhereUniqueInput!) {
What am I doing wrong?