Skip to content

Commit

Permalink
Fix a few typos
Browse files Browse the repository at this point in the history
Typically around needing to cast string literals as UUID
  • Loading branch information
scotttrinh committed Feb 18, 2025
1 parent 98c307c commit f1c51c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/intro/quickstart/working.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ Updating data
+ await e
+ .update(e.Deck, (d) => ({
+ filter_single: e.op(d.id, "=", id),
+ filter_single: e.op(d.id, "=", e.uuid(id)),
+ set: {
+ ...nameSet,
+ ...descriptionSet,
Expand Down Expand Up @@ -346,7 +346,7 @@ Adding linked data
await e
.update(e.Deck, (d) => ({
filter_single: e.op(d.id, "=", id),
filter_single: e.op(d.id, "=", e.uuid(id)),
set: {
...nameSet,
...descriptionSet,
Expand Down Expand Up @@ -471,7 +471,7 @@ Deleting linked data
await e
.update(e.Deck, (d) => ({
filter_single: e.op(d.id, "=", id),
filter_single: e.op(d.id, "=", e.uuid(id)),
set: {
...nameSet,
...descriptionSet,
Expand Down Expand Up @@ -606,7 +606,7 @@ Querying data
- return decks.find((deck) => deck.id === id) ?? null;
+ return await e
+ .select(e.Deck, (deck) => ({
+ filter_single: e.op(deck.id, "=", id),
+ filter_single: e.op(deck.id, "=", e.uuid(id)),
+ id: true,
+ name: true,
+ description: true,
Expand Down

0 comments on commit f1c51c9

Please sign in to comment.