Hello everyone, I just migrated to prisma 2, and I...
# prisma-client
o
Hello everyone, I just migrated to prisma 2, and I can’t run any query or mutation, each time I got
Invalid prisma invocation
Here is an example with a simple mutation :
Copy code
async createItem(parent, args, context) {
    const item = await context.prisma.item.create(
      {
        data: { ...args },
      },
    );
    return item;
  },
// Got this error
"message": "\nInvalid `prisma.item.create()` invocation
✔️ 1
j
What is the rest of the error message?
o
it was my fault, because I forgot a required field… my bad, thanks btw