Skip to content

Commit 0f794ef

Browse files
authored
Merge pull request #617 from neo4j/migration-guide-3
Migration guide 3 and docs for v3
2 parents e647363 + 6c711c2 commit 0f794ef

File tree

11 files changed

+295
-519
lines changed

11 files changed

+295
-519
lines changed

.changeset/easy-horses-repeat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { cypher, params } = matchQuery.build({
1414

1515
_Before_
1616

17-
```js
17+
```cypher
1818
MATCH (this1:Movie:Film)
1919
```
2020

docs/modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
** xref:how-to/update-labels.adoc[]
4545
** xref:how-to/define-cypher-version.adoc[]
4646
* xref:compatibility.adoc[]
47-
* xref:migration-guide-2.adoc[]
47+
* xref:migration-guide-3.adoc[]
4848
* link:https://github.com/neo4j/cypher-builder/tree/main/examples[Examples]
4949
* link:https://neo4j.github.io/cypher-builder/reference/[Reference]

docs/modules/ROOT/pages/build-configuration.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ The method `build` accepts an object with options to configure the build process
1414
[cols="2,1,1,3",options="header"]
1515
|===
1616
| Setting | Type | Default | Description
17-
| `labelOperator` | String | `":"` | Define the default operator to use when using multiple labels in a Pattern. It can be either `:` or `&`
18-
| `cypherVersion` | String | `undefined` | If set, will prepend all queries with a `CYPHER [Version]` statement. The only valid value is `"5"`
17+
| `cypherVersion` | String | `undefined` | If set, will prepend all queries with a `CYPHER [Version]` statement. The possible values are `"5"` and `"25"`
1918
| `prefix` | String | `undefined` | If set, will add a prefix to all variable names. See xref:how-to/customize-cypher.adoc#_build_prefix[Customize Cypher]
2019
| `extraParams` | Object | `{}` | Add the provided parameters to the resulting params object. See xref:variables-and-params/parameters.adoc#_adding_extra_parameters[Parameters]
2120
| `unsafeEscapeOptions` | Object | `{}` | Set of options to disable escaping from generated Cypher. See xref:_unsafe_escape_options[Unsafe escape options]

docs/modules/ROOT/pages/clauses/with.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:description: This page describes how to create `WITH` clauses.
33
= With
44

5-
This page describes how to create a link:https://neo4j.com/docs/cypher-manual/current/clauses/with/[`WITH`] clause using the `Cypher.With` class. Note that this is different to the xref:../subqueries/call.adoc#_importwith[ImportWith] statement inside `CALL`.
5+
This page describes how to create a link:https://neo4j.com/docs/cypher-manual/current/clauses/with/[`WITH`] clause using the `Cypher.With` class.
66

77
A `With` clause will take multiple parameters. Variables can be passed directly without aliasing:
88

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[[compatibility]]
2-
:description: This page outlines the compatibility requirements for `@neo4j/cypher-builder` version 2 with Cypher and Node.js.
2+
:description: This page outlines the compatibility requirements for `@neo4j/cypher-builder` version 3 with Cypher and Node.js.
33
= Compatibility
44

5-
This page outlines the compatibility requirements for `@neo4j/cypher-builder` version 2 with Cypher and Node.js.
5+
This page outlines the compatibility requirements for `@neo4j/cypher-builder` version 3 with Cypher and Node.js.
66

7-
* Targets link:https://neo4j.com/docs/cypher-manual/5/introduction/[Cypher 5], with support for link:https://neo4j.com/docs/cypher-manual/4.4/introduction/[Cypher 4.4].
8-
* Compatible with Node.js version 16.0.0 and later.
7+
* Targets link:https://neo4j.com/docs/cypher-manual/25/introduction/[Cypher 25], with support for link:https://neo4j.com/docs/cypher-manual/5/introduction/[Cypher 5].
8+
* Compatible with Node.js version 20.0.0 and later.
99
1010
[NOTE]
1111
====
12-
`@neo4j/cypher-builder` version 1 is no longer supported. Version 2 is a full replacement and maintains the same compatibility with Cypher and Node.js.
12+
If you need to support Neo4j 4, stay with Cypher Builder 2.x, otherwise, xref:migration-guide-3.adoc#migration[migrate to version 3].
1313
====

docs/modules/ROOT/pages/getting-started/installation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This guide shows how to start using Cypher Builder by setting up a Node.js proje
66

77
== Requirements
88

9-
* link:https://nodejs.org/[Node.js] 16.0.0 or greater
9+
* link:https://nodejs.org/[Node.js] 20.0.0 or greater
1010
* link:https://docs.npmjs.com/downloading-and-installing-node-js-and-npm[npm]
1111
* **[Optional]** A link:https://neo4j.com/cloud/platform/aura-graph-database/?ref=nav-get-started-cta[Neo4j] database to try Cypher queries.
1212

docs/modules/ROOT/pages/how-to/define-cypher-version.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:description: This page describes how to define the Cypher version to be used in the query.
33
= Define Cypher version
44

5-
It is possible to define the version of Cypher to use in a query by prepending that query with `CYPHER [version]`. For example:
5+
It is possible to explicitly define the version of Cypher to use in a query by prepending that query with `CYPHER [version]`. For example:
66

77

88
[source, cypher]
@@ -13,7 +13,7 @@ RETURN this0
1313
----
1414

1515

16-
To add the Cypher version at the beggining of the query, pass the parameter `cypherVersion` to `.build`:
16+
To add the Cypher version at the beggining of the query, pass the parameter `cypherVersion` to `.build`. The possible values are `"5"` and `"25"`:
1717

1818
[source, javascript]
1919
----

0 commit comments

Comments
 (0)