Skip to content

Commit

Permalink
Update getting-started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk committed Jan 21, 2020
1 parent befb16e commit 8515af2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ async function main() {
main()
```

This is a simple API call that fetches all the records from the `users` table.
This is a simple API call that fetches all the records from the `users` table. you can run the script with this command:

```
npx ts-node script.ts
```

If you've used your own database in this guide and are unsure what to query for, you can use your editor's auto-complection feature to help create a query by typing `prisma.` and then hit <kbd>CTRL</kbd>+<kbd>SPACE</kbd> to suggest any of your models as a starting point for the query. Once you selected a model and added another dot afterwards, you can again use the <kbd>CTRL</kbd>+<kbd>SPACE</kbd> to decide for an operation on the model (e.g. `findMany`, `create`, `update`, ...). After having selected the operation, you can once more invoke the auto-completion to explore the arguments to provide for the operation.

Expand Down

0 comments on commit 8515af2

Please sign in to comment.