Skip to content

Commit

Permalink
Remove correct version of trx-style code
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Feb 18, 2025
1 parent 775e709 commit 6bee10b
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions docs/intro/quickstart/working.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,15 @@ In this section, you will update the existing application to use |Gel| to store
- cardIds.push(createdCard.id);
- }
-
- await e
- .params({ cardIds: e.array(e.uuid) }, (params) =>
- e.insert(e.Deck, {
- name: deck.name,
- description: deck.description,
- cards: e.select(e.Card, (c) => ({
- filter: e.contains(params.cardIds, c.id),
- })),
- })
- )
- .run(tx, { cardIds });
- const cardIdsLiteral = e.literal(e.array(e.uuid), cardIds);
-
- await e.insert(e.Deck, {
- name: deck.name,
- description: deck.description,
- cards: e.select(e.Card, (c) => ({
- filter: e.contains(cardIdsLiteral, c.id),
- })),
- }).run(tx);
- });
+ await e
+ .params(
Expand Down

0 comments on commit 6bee10b

Please sign in to comment.