Skip to content

Commit

Permalink
add docs for raw API
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk committed Feb 10, 2020
1 parent b01d301 commit a4a41e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/prisma-client-js/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ Here's an example that fetches all records from the `USER` table:
```ts
const result = await prisma.raw`SELECT * FROM USER;`
// result = [
// { "id":1, "email":"sarah@prisma.io", "name":"Sarah" },
// { "id":2, "email":"alice@prisma.io", "name":"Alice" }
//]
// { "id":1, "email":"sarah@prisma.io", "name":"Sarah" },
// { "id":2, "email":"alice@prisma.io", "name":"Alice" }
// ]
```

The `raw` function returns the results as plain old JavaScript objects.
Expand Down

0 comments on commit a4a41e6

Please sign in to comment.