diff --git a/docs/pages/guides/project-structure.md b/docs/pages/guides/project-structure.md index 2c6464a9e..95d0018d9 100644 --- a/docs/pages/guides/project-structure.md +++ b/docs/pages/guides/project-structure.md @@ -41,7 +41,7 @@ That's it. But now everywhere else in my application instead of requiring `pg` d ```js // notice here I'm requiring my database adapter file // and not requiring node-postgres directly -import * as db from '../db.js' +import * as db from '../db/index.js' app.get('/:id', async (req, res, next) => { const result = await db.query('SELECT * FROM users WHERE id = $1', [req.params.id])