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

Conversation

liliana-benitez
Copy link
Contributor

This PR fixes an incorrect path for PrismaClient in "Querying the database using JavaScript and PostgreSQL" page, in "Write your first query with Prisma Client" section.

The documentation currently uses:

const { PrismaClient } = require('@prisma/client')

But the correct import path (for this context) is:

const { PrismaClient } = require('./generated/prisma')

The recommended import path for certain setups has been updated, and this section/page has outdated syntax, which could lead to confusion or errors for users following the docs.

@petradonka petradonka requested a review from nikolasburk June 11, 2025 07:37
…atch/110-relational-databases/250-querying-the-database-node-postgresql.mdx
Copy link
Member
@nikolasburk nikolasburk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for catching this @liliana-benitez 🎉

@nikolasburk nikolasburk merged commit bb1d04b into prisma:main Jun 11, 2025
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development
3996

Successfully merging this pull request may close these issues.

2 participants
0