Results and charts
The results of the last run are shown below the query builder. The same results view is used in dashboard widgets.
The toolbar
The toolbar sums up the last run, one chip per query, e.g. #1 · result: 5 · 3 nodes · 2 edges · 1 other (the #1 only for a batch of several queries), and the time of the run. More chips appear when they apply:
unique: N: some queries of the batch returned the same elements. The graph and the table show each element once.context: N: elements loaded by the context tab (see Context and expanded elements).expanded: N: elements loaded with Expand neighbours in the graph.
On the right are the Export menu, the Style button for the colours and sizes of the graph (not in the chart view) and the views: Summary when the result is a single number, Graph, Table, Chart and JSON.
The studio picks a view that fits the results:
- Summary when there are no elements, e.g. for
node_countor a mutation (shows Node count, Edge count, Affected or Result). - Table for metadata such as
keys,key_count,edge_count,aliasesorindexes. - Graph otherwise.
A view you choose yourself stays until the results change their shape.
Table
One row per element with the columns id, alias (when any node has one), result (for a batch: which of its queries returned the element), from and to (when there are edges), and one column per property key. The row of the database itself (id 0) reads (database).
The table shows 100 rows per page with Previous and Next. Right-click a row, or use its ⋮ button, for the same actions as in the graph: view and edit values, pin, expand neighbours, delete.
JSON
The raw results as the database returned them, with a Copy button. Unlike the table, it keeps elements returned by more than one query. Long results are cut at 50,000 characters; Show all shows the rest.
Chart
The chart view draws the results as a Bar, Line, Donut or Stat chart. Every chart measures groups of elements:
| Setting | Choices |
|---|---|
| Show | Count of elements, or Sum / Average / Min / Max of a numeric property (of) |
| by | a property (one group per value), or Query of the batch (one group per query) |
| Lines | line charts of a batch only: One, or One per query |
- Bar: one bar per group; grouped by a property the largest come first, grouped by query they keep the order of the batch. At most 12 bars including a grey Other that adds up the rest.
- Line: the groups along the x axis, ordered as numbers or dates when all the values are numbers or dates, otherwise as text. Not available when grouping by query, because a line needs ordered values.
- Donut: parts of a total, so only Count and Sum. At most 5 slices including Other.
- Stat: the measure of all elements as one number.
The first time you open the chart it suggests one: a count by the first text property that has 2 to 12 different values shared by several elements, or else a bar per query for a batch and a stat tile for a single query.
Hover a bar, point or slice, or focus the chart and use the arrow keys, to see its exact value.
select().search()… rather than a bare search(), which returns only ids.Chart style
Style in the chart settings opens the Chart style dialog:
- Title: replaces the generated title, e.g. "Count by category". Leave it empty to get the generated one back.
- Colour: one colour for every bar, or for a single line. Bars of queries that have a colour in the query builder keep it.
- Bars / Slices / Lines: a colour and a new name for each one.
- Reset: back to the generated title, the default colours and the names from the data.
Colours and names belong to the values they were picked for, so choosing another by drops them. Changing the chart type keeps them.
Export
Export downloads the results as Table (CSV), Chart data (CSV) (chart view only) or JSON, or prints the current view with Print…. See Export and print.