I have a mutation to delete all records in a table...
# orm-help
p
I have a mutation to delete all records in a table:
Copy code
removeAllMovies: () => {
    return prisma.movie.deleteMany({});
  },
what would be the correct syntax in the schema to reflect this resolver?
Copy code
type Mutation {
    removeAllMovies()
  }
obviously doesn't work ^^
r
Answered on StackOverflow.