Skip to content
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
643a4e9
Added section on by-table semantics
JoelBergstrand Jul 29, 2025
8800466
Update modules/ROOT/pages/queries/composed-queries/sequential-queries…
JoelBergstrand Jul 31, 2025
c990191
Update modules/ROOT/pages/queries/composed-queries/sequential-queries…
JoelBergstrand Jul 31, 2025
26ce6e5
Update modules/ROOT/pages/queries/composed-queries/sequential-queries…
JoelBergstrand Jul 31, 2025
abb28db
Updated examples, reorganized and expanded on by-table semantics
JoelBergstrand Jul 31, 2025
bab0540
further massaging of text
hvub Aug 1, 2025
63bdec3
adding tags back in
hvub Aug 4, 2025
cd83138
review suggestion
hvub Aug 7, 2025
953025f
Merge branch 'dev' into 2025.x-next-by-table-semantics
rsill-neo4j Aug 12, 2025
e94d2bb
Apply suggestions from code review
hvub Aug 14, 2025
5e8021d
Apply suggestions from code review
rsill-neo4j Aug 14, 2025
e320a9a
Merge branch 'dev' into 2025.x-next-by-table-semantics
rsill-neo4j Aug 19, 2025
b0a40a5
fix discount
hvub Aug 19, 2025
d3af913
added entry for NEXT update in additions
rsill-neo4j Aug 19, 2025
12d4ee7
fixed a copy-paste error
rsill-neo4j Aug 19, 2025
1a20741
Apply suggestions from code review
rsill-neo4j Aug 19, 2025
0870dae
removed additions entry, wrapped type results in quotes in the query …
rsill-neo4j Aug 20, 2025
e315c41
added a different entry to additions page, updated wording for 'arms'…
rsill-neo4j Aug 20, 2025
7dbbb86
clarified the additions entry
rsill-neo4j Aug 20, 2025
b010b40
made the note a separate section
rsill-neo4j Aug 21, 2025
f12c3c5
added a + to version info
rsill-neo4j Aug 21, 2025
14d2029
Merge branch 'dev' into 2025.x-next-by-table-semantics
rsill-neo4j Aug 21, 2025
b34eddb
Update modules/ROOT/pages/queries/composed-queries/sequential-queries…
rsill-neo4j Aug 21, 2025
89fca4b
cleanup
rsill-neo4j Aug 21, 2025
b20b054
Apply suggestions from code review
rsill-neo4j Aug 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,32 @@ For more information, see xref:queries/select-version.adoc[].
| Feature
| Details

a|
label:functionality[]
label:updated[]
[source, cypher]
----
MATCH (p:Product) WHERE p.name <> "Coffee"
CALL (p) {
MATCH (p)<-[:BUYS]-(c:Customer)-[:BUYS]->(otherProduct)
RETURN c, otherProduct
NEXT
RETURN count(DISTINCT c) AS customers, 0 AS customersAlsoBuyingCoffee
UNION
FILTER otherProduct.name = "Coffee"
RETURN 0 as customers, count(DISTINCT c) AS customersAlsoBuyingCoffee
NEXT
RETURN max(customers) AS customers, max(customersAlsoBuyingCoffee) AS customersAlsoBuyingCoffee
}
RETURN p.name AS product,
round(toFloat(customersAlsoBuyingCoffee) * 100 / customers, 1) AS percentageOfCustomersAlsoBuyingCoffee
ORDER BY product
----

| `NEXT` now correctly supports aggregations in the context of `UNION` and `CALL`.
In Neo4j 2025.06, such queries yielded incorrect results while they created an error in Neo4j 2025.07.
For more information, see xref:queries/composed-queries/sequential-queries.adoc#issues-fixes[Sequential queries (`NEXT`) > Known issues and fixes].

a|
label:functionality[]
label:updated[]
Expand Down
Loading