diff --git a/docs/intro/quickstart/working.rst b/docs/intro/quickstart/working.rst index 91d8b30a7df..6c4b83ea65f 100644 --- a/docs/intro/quickstart/working.rst +++ b/docs/intro/quickstart/working.rst @@ -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(