Skip to content

Commit

Permalink
Noe4j Browser: disable "Connect result nodes"
Browse files Browse the repository at this point in the history
Default to false. Sets default browser settings using method from
https://neo4j.com/developer/kb/how-do-i-override-browser-configuration-settings/

Refs neo4j/neo4j-browser#181
  • Loading branch information
dhimmel committed Sep 18, 2017
1 parent 35e42cb commit 9014aed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
15 changes: 9 additions & 6 deletions hetnet/neo4j/docker/files/neo4j.conf
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,17 @@ dbms.read_only=true
# Enable query execution timeout.
dbms.transaction.timeout=120s

# Enable remote content (guides) from anywhere
# In Neo4j 3.2.1, only available in enterprise (https://github.com/neo4j/neo4j/issues/9534)
browser.remote_content_hostname_whitelist=*

# Configure the guide-extension
# https://github.com/jexp/neo4j-guides/tree/master/guide-extension
dbms.unmanaged_extension_classes=extension.web=/guides
org.neo4j.server.guide.directory=data/guides

# Autoplay the Hetionet guide
browser.post_connect_cmd=style https://neo4j.het.io/guides/graphstyle.grass; play https://neo4j.het.io/guides/hetionet.html
# Enable remote content (guides) from anywhere
# In Neo4j 3.2.1, only available in enterprise (https://github.com/neo4j/neo4j/issues/9534)
browser.remote_content_hostname_whitelist=*

# Commands to run during browser startup:
# 1. Override browser settings (https://neo4j.com/developer/kb/how-do-i-override-browser-configuration-settings/)
# 2. Autoload custom Hetionet GRASS style (https://github.com/neo4j/neo4j-browser/issues/171)
# 3. Autoplay the Hetionet guide (https://github.com/neo4j/neo4j-browser/issues/181)
browser.post_connect_cmd=config {autoComplete: false}; style https://neo4j.het.io/guides/graphstyle.grass; play https://neo4j.het.io/guides/hetionet.html
3 changes: 2 additions & 1 deletion hetnet/neo4j/docker/guides/hetionet.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ WITH rels[toInteger(rand() * size(rels))] AS rel
RETURN startNode(rel), rel, endNode(rel)
----

Note that by default, the Neo4j Browser draws all relationships between retrieved nodes. Toggle `AUTO-COMPLETE` to `OFF` (located in the bottom right of a frame) to _only_ display queried relationships.
By default, the Hetionet Neo4j Browser only shows relationships that were returned by the query.
To show every relationship between the displayed nodes instead, select `Connect result nodes` under settings.

++++
</div>
Expand Down
3 changes: 2 additions & 1 deletion hetnet/neo4j/docker/guides/hetionet.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ <h4>Random relationships</h4>
</div>
</div>
<div class="paragraph">
<p>Note that by default, the Neo4j Browser draws all relationships between retrieved nodes. Toggle <code>AUTO-COMPLETE</code> to <code>OFF</code> (located in the bottom right of a frame) to <em>only</em> display queried relationships.</p>
<p>By default, the Hetionet Neo4j Browser only shows relationships that were returned by the query.
To show every relationship between the displayed nodes instead, select <code>Connect result nodes</code> under settings.</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 9014aed

Please sign in to comment.