Hi guys! I've updated to the latest version of pri...
# orm-help
b
Hi guys! I've updated to the latest version of prisma, but still can't seem to use createMany. I'm importing it from my seed file. This is my code:
Copy code
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

const nodes = await prisma.node.createMany({
    data: [
    ]
  })
I'm using prisma client 2.21.2. And when I specify it as a preview feature in schema.prisma it just tells me not to. The error I'm getting is
Property 'createMany' does not exist on type 'NodeDelegate<RejectOnNotFound | RejectPerOperation | undefined>'
f
I had this error a few days ago, and it worked again after I did a clean install of my project dependencies Not the best solution, but it might work for you too
👍 1