Run Cypher
Runs a query against the movies
database on the Neo4j Labs Demo Instance. The query runs in a transaction before being rolled back.
Graph Layout
MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)
RETURN p, r, m
LIMIT 10
Results on pageload:
MATCH (n) RETURN count(n) // `role=runnable instant`
Mixed Results, Multiple Rows and role=editable
MATCH (n:Person)-[r:ACTED_IN]->(m:Movie)
RETURN n,
n.name,
n.born,
id(n) AS id,
m.title,
m.degree,
type(r),
id(r),
r
LIMIT 10
Syntax Error
MATCH (n) RETURN count
Write Mode
MATCH (n) RETURN count(n)
See src/js/07-runnable-code.js
. At the moment URL, username and password are currently hardcoded:
window.neo4jDatabaseUri = 'neo4j+s://demo.neo4jlabs.com:7687'
window.neo4jDatabase = 'movies'
window.neo4jDriver = window.neo4j.driver(window.neo4jDatabaseUri, window.neo4j.auth.basic('movies', 'movies'))
Config Options
-
Runnable Statement:
-
[source,role=runnable]
-
-
Make it editable (Basic editing):
-
[source,role=editable]
-
-
Session/Query Mode (read, write)
-
[source,role=mode:read]
-
[source,role=mode:write]
-
-
Modify DB:
-
[source,role=database:movies]
-
[source,role=database:fincen]
-
[source,role=database:etc]
-
-
Get instant results:
-
[source,role=instant]
-