Skip to content

Commit

Permalink
Prepare release.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-simons committed Feb 18, 2021
1 parent 69c798b commit 7de1acd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:groupId: org.neo4j
:artifactId: neo4j-cypher-dsl

:neo4j-cypher-dsl-version: 2021.0.1-SNAPSHOT
:neo4j-cypher-dsl-version: 2021.0.1

// end::properties[]

Expand Down
37 changes: 37 additions & 0 deletions docs/appendix/2021.0.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
== 2021.0

=== 2021.0.1

==== 🚀 Features

* GH-147 - Configuration infrastructure for renderer.
First use case being a simple, pretty printing renderer.

The feature looks like this:

[source,java]
----
var c = node("Configuration").named("c");
var d = node("Cypher-DSL").named("d");
var mergeStatement = merge(c.relationshipTo(d, "CONFIGURES"))
.onCreate()
.set(
d.property("version").to(literalOf("2021.0.1")),
c.property("prettyPrint").to(literalTrue())
)
.onMatch().set(c.property("indentStyle").to(literalOf("TAB")))
.returning(d).build();
var renderer = Renderer.getRenderer(Configuration.prettyPrinting());
System.out.println(renderer.render(mergeStatement));
----

and gives you:

[source,cypher]
----
MERGE (c:Configuration)-[:CONFIGURES]->(d:`Cypher-DSL`)
ON CREATE SET d.version = '2021.0.1', c.prettyPrint = true
ON MATCH SET c.indentStyle = 'TAB'
RETURN d
----

=== 2021.0.0

2021.0.0 comes with a lot of new features.
Expand Down

0 comments on commit 7de1acd

Please sign in to comment.