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
Harshit
03/14/2019, 1:16 PM
Hi @Robert
The post uses prisma-binding package. You are using prisma client. That is why there is a difference in the API