Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/content/docs/d1/tutorials/d1-and-prisma-orm/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@ npx wrangler d1 execute prisma-demo-db --command "INSERT INTO \"User\" (\"email
('[email protected]', 'Jane Doe (Remote)');" --remote
```

If you're getting an error like `Unknown arguments: (\email\,, \name\)...`, you may need to escape the double quotes with `\``.

```sh
# Escape with ` instead of \
npx wrangler d1 execute prisma-demo-db --command "INSERT INTO `"User`" (`"email`", `"name`") VALUES
('[email protected]', 'Jane Doe (Local)');" --local
```

### 5. Query your database from the Worker

To query your database from the Worker using Prisma ORM, you need to:
Expand Down