Skip to content

Commit

Permalink
add rebuild hint
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Oct 12, 2022
1 parent a4503ad commit 4e7c5e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/pages/docs/context/get-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Keystone's command line interface is helpful, but sometimes you don't want to st
Maybe you need to insert data into the database, maybe you want to use Keystone with a custom protocol or a tiny REST API.
*Or maybe you want to write unit tests.*

If you have previously built Keystone using `keystone build` or used `keystone dev`, then you can use `getContext`.
If you have previously run `keystone build` or `keystone dev`, then you can use `getContext`.
If you change your configuration, you should [rebuild your project](../docs/guides/cli) before using `getContext`.

Using the `getContext` function does not use the typical Keystone entry point - it is a function and only requires that your Prisma client has been built and can be provided as a parameter with your Keystone configuration.

Expand Down

0 comments on commit 4e7c5e4

Please sign in to comment.