8000 fix: correct PrismaClient import path by liliana-benitez · Pull Request #6929 · prisma/docs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: correct PrismaClient import path #6929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Now that you have generated [Prisma Client](/orm/prisma-client), you can start w
Create a new file named `index.js` and add the following code to it:

```js file=index.js copy showLineNumbers
const { PrismaClient } = require('@prisma/client')
const { PrismaClient } = require('./generated/prisma')

const prisma = new PrismaClient()

Expand All @@ -40,7 +40,7 @@ main()

Here's a quick overview of the different parts of the code snippet:

1. Import the `PrismaClient` constructor from the `@prisma/client` node module
1. Import `PrismaClient` from the `output` directory specified in the `prisma init` command.
1. Instantiate `PrismaClient`
1. Define an `async` function named `main` to send queries to the database
1. Call the `main` function
Expand Down
Loading
0