C:\Users\Jan\Documents\throwaway\foo>prisma2 generate
info You don't have defined any generator in your schema.prisma, so nothing will be generated.
You can define them like this:
generator client {
provider = "prisma-client-js"
}
You can now start using Prisma Client in your code:
´´´
import { PrismaClient } from '@prisma/client'
// or const { PrismaClient } = require('@prisma/client')
const prisma = new PrismaClient()
´´´
Explore the full API: http://pris.ly/d/client
When you use
generateon a schema without ageneratorblock: