From 5abbd3565048c1734dbbfa0673d484eb02635f1a Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Mon, 13 Feb 2023 10:57:50 +0100 Subject: [PATCH] Make example in `limit.adoc` deterministic --- modules/ROOT/pages/clauses/limit.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/clauses/limit.adoc b/modules/ROOT/pages/clauses/limit.adoc index a1759c211..2c4cb3d30 100644 --- a/modules/ROOT/pages/clauses/limit.adoc +++ b/modules/ROOT/pages/clauses/limit.adoc @@ -130,12 +130,13 @@ Properties set: 1 If we want to limit the number of updates we can split the query using the `WITH` clause: .Query -[source, cypher, role="test-result-skip"] +[source, cypher] ---- MATCH (n) WITH n LIMIT 1 SET n.locked = true RETURN n +ORDER BY n.name ---- Writes `locked` property on one node and return that node: