Browser settings
The Neo4j Browser defaults for all settings can be adjusted at any time in Neo4j Browser and globally.
To view all currently configured settings, run :config
.
:config
{
"maxHistory": 30,
"theme": "auto",
"initCmd": ":play start",
"playImplicitInitCommands": true,
"initialNodeDisplay": 300,
"maxNeighbours": 100,
"showSampleScripts": true,
"browserSyncDebugServer": null,
"maxRows": 1000,
"maxFieldItems": 500,
"autoComplete": true,
"scrollToTop": true,
"maxFrames": 30,
"codeFontLigatures": true,
"useBoltRouting": false,
"editorLint": false,
"enableMultiStatementMode": false,
"connectionTimeout": 30000,
"showPerformanceOverlay": false,
"allowCrashReports": true,
"allowUserStats": true,
"showWheelZoomInfo": true,
"useReadTransactions": false,
"useCypherThread": true,
"shouldReportUdc": true,
"cmdchar": ":",
"editorAutocomplete": true
}
Browser Setting | Default value | Description | Configurable in the Browser Settings drawer |
---|---|---|---|
|
|
The maximum number of recently executed queries kept in Browser. When reached, old entries get retired. The command history is persisted across Browser restarts. |
yes |
|
|
Neo4j Browser UI theme.
Possible values: |
yes |
|
|
The initial command that is run when connected to the graph. |
yes |
|
|
If |
no |
|
|
Limit the number of nodes displayed on the first load of the graph visualization. |
yes |
|
|
The maximum number of neighbours for a node. |
yes |
|
|
Whether to display the Sample Scripts tab in Favorites. |
yes |
|
|
Internal setting, used for debugging Browser Sync. |
yes |
|
|
The maximum rows to render in the Table and Text result views. |
yes |
|
|
Limit the length of the returned lists.
For example, if a node has 1000 labels, the list will be cut off to the value set in |
no |
|
|
Automatic completion of missing relationships. |
yes |
|
|
Automatically scroll stream to top on new frames. |
yes |
|
|
The maximum number of result frames. When reached, old frames get retired. |
yes |
|
|
Allow font ligatures for the Cypher editor bar and Cypher snippets. |
yes |
|
|
Whether to use Bolt routing. The Bolt+routing feature on Neo4j drivers discovers a cluster member (drivers have a load-balancing feature). |
no |
|
|
Enable/disable squiggly lines under text. |
no |
|
|
Allows you to write and edit multi-line queries (use a semicolon ( |
yes |
|
|
The timeout in ms when establishing a connection to Neo4j. |
yes |
|
|
Internal setting, used for showing a performance overlay (FPS and memory usage). |
no |
|
|
Allow crash reports to be sent, can be changed from Desktop. |
no |
|
|
Allow product usage statistics to be sent, can be changed from Desktop |
no |
|
|
Show zoom interactions hint. |
yes |
|
|
Use only read transactions for Cypher queries, preventing writing to the database. |
yes |
|
|
Report less user metrics (user data collection). |
no |
|
|
Trigger autocomplete when typing. |
no |
Adjust settings in Browser
To change the configuration settings in Neo4j Browser, you can either use the tabs in the Browser Settings drawer or, in the Editor, type the command :config
together with the setting and the new value.
:config
The example shows how to change the maximum number of neighbors for a node using the :config
command.
:config maxNeighbours:100
The example shows how to change the maxFrames
from its default of 50
to 10
and the theme to outline
.
:config {maxFrames: 10, theme: "outline"}
After making the change, re-running :config
reports that maxFrames
has been set to 10
, and the theme is defined to outline
.
The Browser Settings drawer also reflects this change.
Adjusting the settings first resets the configuration to the default configuration and then sets the given configurations. |
Adjust settings globally
To change the configuration settings for all users of Neo4j Browser, modify the neo4j.conf file, or if using Neo4j Desktop, navigate to the DBMS which settings you want to update, click the ellipsis dropdown menu, and select Settings.
For example, to change the maxFrames
from its default of 50
to 10
and the theme to outline
, add the following line to neo4j.conf:
browser.post_connect_cmd=config {maxFrames:10, theme: "outline"}
This changes the maxFrames
from its default of 50
to 10
and then restarts Neo4j.
Browser Setting | Default value | Description |
---|---|---|
|
|
Configure the policy for outgoing Neo4j Browser connections. |
|
|
Configure the Neo4j Browser to time out logged-in users after this idle period.
Setting this to |
|
Commands to be run when Neo4j Browser successfully connects to the server.
Separate multiple commands with a semicolon ( |
|
|
|
Whitelist of hosts for the Neo4j Browser to be allowed to fetch content from. |
|
|
Configure the Neo4j Browser to store or not store user credentials. |
|
|
Configure the Neo4j Browser to store or not store editor history. |