Skip to content

Commit

Permalink
docs(README): Remove smart module (#2518)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhwelander committed Jun 5, 2020
1 parent 52d0921 commit 40fcf53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ The first step when using Prisma Client is installing its npm package:
npm install @prisma/client
```

Note that the installation of this package invokes the `prisma generate` command which reads your Prisma schema and _generates_ the Prisma Client code. The code will be located in `node_modules/@prisma/client`.
Note that the installation of this package invokes the `prisma generate` command which reads your Prisma schema and _generates_ the Prisma Client code. The code will be located in `node_modules/.prisma/client`, which is exported by `node_modules/@prisma/client/index.d.ts`.

After you change your data model, you'll need to manually re-generate Prisma Client to ensure the code inside `node_modules/@prisma/client` get updated:
After you change your data model, you'll need to manually re-generate Prisma Client to ensure the code inside `node_modules/.prisma/client` get updated:

```
prisma generate
```

Note that because the Prisma Client node module contains specific context about _your_ Prisma schema, it's sometimes referred to as a ["smart node module"](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/generating-prisma-client#how-prisma-client-compares-to-conventional-node-modules).
Refer to the documentation for more information about ["generating the Prisma client"](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/generating-prisma-client).

#### Using Prisma Client to send queries to your database

Expand Down

0 comments on commit 40fcf53

Please sign in to comment.