Queries#
A query tab has the Storm editor at the top and the results below.
The editor#
Shift+Enter runs the query (Ctrl+Enter and ⌘Enter too, or Run); Esc stops it.
Storm is highlighted as you type, with line numbers and auto-indent. Tab / Shift+Tab indent, Ctrl+/ comments lines, and wrap (or Alt+Z) wraps long lines.
Ctrl+↑ / Ctrl+↓ walk through your query history.
Completion and docs#
Completion pops up as you type:
forms (
inet:fq) and full properties (inet:fqdn:);relative properties of the forms in the query (
:zo) and universal properties (.);tags (
#cno.), looked up in the Cortex;$liblibraries and their members, with their arguments ($lib.axon.);commands: after a pipe, Ctrl+Space lists them.
Ctrl+Space asks for completions anywhere; Enter or Tab takes one, Esc closes the list.
Hover a form, property, command or $lib name for its documentation.

Lint#
Problems are underlined as you type, before anything runs, with a mark by the line. The count under the editor (✓ No problems, or 1 error) opens the list; click a problem to jump to it, or hover an underline to read it. A query with errors asks before it runs (Run anyway).
Rule |
Finds |
|---|---|
|
A syntax error, at its line and column |
|
Synapse’s own Storm linter rules |
|
A form or full property which is not in the data model ( |
|
A relative property ( |
|
A Storm command this Cortex does not have |
|
Bad command arguments: unknown options, missing or wrongly typed values. Values only known when the query runs ( |
|
A |
|
A variable which is used but never set (a warning) |
Lint runs only in storm mode. The editor in the saved query dialog is linted too.

Mode and limit#
mode:
storm(the default),lookup(paste values such as1.2.3.4 vertex.linkto find them),autoadd(lookup, and add the ones which do not exist) orsearch(the Cortex’s search index).limit: stop after this many nodes.
Add | colorize <color> to a query (inet:fqdn#cno | colorize red) to color its rows in the table and
its nodes in the graph.
Saving and sharing#
Save keeps the query in the graph, as an
it:exec:querynode tagged#meta.neuralui.query, with its name, description, mode and limit. Saved queries are listed in the Library; anyone who can read the node can run it.Share makes a short link to the query. Opening it shows the query without running it.
Every query you run is kept in your history.
Views of the results#
Table: nodes grouped by form, see Results.
Graph: the nodes and the links between them, see The graph.
Output: only what Storm says (prints, warnings, errors), like the Storm CLI. Use it for commands such as
auth.user.listand for queries which edit many nodes. It lists no nodes, but keeps them: switch to Table or Graph to see them without running the query again (one that called an outside service, or used API credits, is not repeated). Past the results cap the rest are counted, not kept, and the query is never paused.

Under the results, Messages keeps every run’s prints, warnings, errors, lookup misses, fired events and CSV rows, each run headed by its query and ended with its node count and time. It is kept until the page closes. Copy and Clear are on its bar; drag its top edge to resize it (double-click to reset).
When there is nothing to show#
A new tab suggests some queries (click one to run it) and the shortcuts for completion and the command palette.
A tab restored from an earlier visit says its query has not been run yet, with Run it: results are not kept when the page closes.
A query with no results says which view it ran in and how long it took, with hints: lookup mode, messages Storm printed, a stopped query, other views.
A failed query says what went wrong and what to do next (a syntax error, an unknown name, a missing permission, a lost connection, a timeout), with the Cortex’s message under it.

The command palette#
Ctrl+K opens the command palette: run, stop, share, save, export, switch between Table, Graph and Output, change the mode, go to a tab or a saved query, switch the view, theme or time zone, and more. Type to find a command, and Enter runs it.
