Interactions-as-a-Service / d1-orm

A simple, strictly typed ORM, to assist you in using Cloudflare's D1 product
https://docs.interactions.rest/d1-orm/
Apache License 2.0
162 stars 11 forks source link

Docs: UpdateDate Example Wrong #66

Closed chrisspiegl closed 1 year ago

chrisspiegl commented 1 year ago

I noticed that the Updating Data command shown in the docs is wrong:

https://docs.interactions.rest/d1-orm/models#updating-data

Currently (notice the two parameters and not providing the data in the data parameter.

await users.Update({ where: { name: "Jane Doe" } }, { name: "John Doe" });

Correct:

await users.Update({ where: { name: "Jane Doe" }, data: { name: "John Doe" }});
Skye-31 commented 1 year ago

Facing a small issue with the CI that deploys the docs, but that should fix itself shortly. Thanks for reporting