diff --git a/doc/modules/ROOT/content-nav.adoc b/doc/modules/ROOT/content-nav.adoc index 96128ba38a..73052906e6 100644 --- a/doc/modules/ROOT/content-nav.adoc +++ b/doc/modules/ROOT/content-nav.adoc @@ -43,10 +43,6 @@ *** xref:management-ops/graph-update/to-undirected.adoc[] *** xref:management-ops/graph-update/collapse-path.adoc[] *** xref:management-ops/graph-update/dropping-parts.adoc[] -// TODO: Uncomment and rename the _write-with-cypher.adoc page when -// all bugs with writes have been fixed. -// Also, add references to it in other pages accordingly. -// *** xref:management-ops/graph-update/write-with-cypher.adoc[] ** Writing back to Neo4j *** xref:management-ops/graph-write-to-neo4j/write-back-to-nodes.adoc[] *** xref:management-ops/graph-write-to-neo4j/write-back-relationships.adoc[] diff --git a/doc/modules/ROOT/pages/management-ops/graph-update/_write-with-cypher.adoc b/doc/modules/ROOT/pages/management-ops/graph-update/_write-with-cypher.adoc deleted file mode 100644 index 3e85e26799..0000000000 --- a/doc/modules/ROOT/pages/management-ops/graph-update/_write-with-cypher.adoc +++ /dev/null @@ -1,71 +0,0 @@ -[[cypher-writes-on-gds]] -= Updating with Cypher -:description: This chapter explains how to execute Cypher queries on named graphs in the Neo4j Graph Data Science library. - - -include::partial$/operations-reference/alpha-note.adoc[] - -include::partial$/common-usage/not-on-aurads-note.adoc[] - -NOTE: This feature requires Neo4j Enterprise Edition. - -Using an xref:management-ops/graph-reads/create-cypher-db.adoc#_syntax[ephemeral database], you can use Cypher to update your graph as well as xref:management-ops/graph-reads/create-cypher-db.adoc#_read_query[reading from it]. - -This feature is under development. - -[[create-ephemeral-db-example]] -== Example - -This example shows the creation of an ephemeral database from a simple social network graph and its usage with Cypher queries. - -=== Setup - -include::partial$/management-ops/ephemeral-db/create-example.adoc[] - -=== Update query - -As an example of updating the graph, we add a `level` node property only to some nodes that match a given condition: - -[role=query-example] --- -[source, cypher, role=noplay] ----- -MATCH (n:Person) -WHERE n.age > 40 -SET n.level = 3 -RETURN n.age, n.level ----- - -.Results -[opts="header"] -|=== -| n.age | n.level -| 42 | 3 -|=== --- - -Then, we run a Cypher query to check that the new property has actually been added: - -[role=query-example] --- -[source, cypher, role=noplay] ----- -MATCH (n:Person) -WHERE n.level = 3 -RETURN n.age, n.level ----- - -.Results -[opts="header"] -|=== -| n.age | n.level -| 42 | 3 -|=== --- - -[[drop-ephemeral-db]] -=== Cleanup - -include::partial$/management-ops/ephemeral-db/drop-example.adoc[] - -include::partial$/management-ops/ephemeral-db/limitations.adoc[] \ No newline at end of file diff --git a/doc/modules/ROOT/pages/management-ops/index.adoc b/doc/modules/ROOT/pages/management-ops/index.adoc index e74156d0a4..7b03d78bf7 100644 --- a/doc/modules/ROOT/pages/management-ops/index.adoc +++ b/doc/modules/ROOT/pages/management-ops/index.adoc @@ -35,9 +35,9 @@ You can also xref:management-ops/graph-drop.adoc[drop] a graph from the catalog === Read -The properties stored in the nodes and relationships of a graph can be retrieved using the `stream` methods on xref:management-ops/graph-reads/graph-stream-nodes.adoc[nodes] and xref:management-ops/graph-reads/graph-stream-relationships.adoc[relationships] respectively. In the Enterprise Edition, similar operations can be performed more efficiently using xref:management-ops/graph-export/graph-catalog-apache-arrow-ops.adoc[Apache Arrow]. +The properties stored in the nodes and relationships of a graph can be retrieved using the `stream` methods on xref:management-ops/graph-reads/graph-stream-nodes.adoc[nodes] and xref:management-ops/graph-reads/graph-stream-relationships.adoc[relationships] respectively. +In the Enterprise Edition, similar operations can be performed more efficiently using xref:management-ops/graph-export/graph-catalog-apache-arrow-ops.adoc[Apache Arrow]. -For complex use cases where an expressive query language is needed, you can run xref:management-ops/create-cypher-db.adoc[Cypher queries] on a graph. === Update