Skip to content

Commit

Permalink
Fix e.with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Nov 1, 2022
1 parent 777ec1b commit d3568e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/with.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ extracted into a ``with`` block.
const y = e.select(e.op(x, '^', x));
y.toEdgeQL();
// WITH x := 3
// SELECT x ^ 3
// with x := 3
// select x ^ x
const result = await y.run(client);
// => 27
Expand Down Expand Up @@ -59,7 +59,7 @@ can short-circuit this logic with ``e.with``.
});
const newMovie = e.insert(e.Movie, {
actors: e.with([robert, colin], // list "dependencies"
e.set(robert, colin)
e.select(e.set(robert, colin))
)
})
Expand Down

0 comments on commit d3568e9

Please sign in to comment.