diff --git a/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/250-querying-the-database-node-postgresql.mdx b/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/250-querying-the-database-node-postgresql.mdx index 0eb0b4bf7c..5f16c8481c 100644 --- a/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/250-querying-the-database-node-postgresql.mdx +++ b/content/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/250-querying-the-database-node-postgresql.mdx @@ -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() @@ -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