But then this link <https://www.prisma.io/tutorial...
# orm-help
r
But then this link https://www.prisma.io/tutorials/a-guide-to-common-resolver-patterns-ct08 seems to be showing bad examples?
Copy code
Add a delete resolver to Mutation part of src/index.js

delete(parent, { id }, ctx, info) {
  return ctx.db.mutation.deletePost(
  {
    where: { id }
  },
    info
  );
}
h
Hi @Robert The post uses prisma-binding package. You are using prisma client. That is why there is a difference in the API
👍 1