2.9 Projections
Projections are reusable, versioned Cypher queries against the knowledge graph. You save a query once, publish it, and then run it (or let other systems call it) by its slug, so the same query stays consistent everywhere it is used. They build on the graph a Build has processed.
There are two kinds:
- Views: return nodes and relationships.
- Functions: return any result, such as counts, aggregations or single values.
Both kinds share the same building blocks: a Definition (the Cypher query), optional Parameters, a unique Slug, a Query timeout, and Versions.
Manage them from the Projections section in the sidebar. The list has Views and Functions tabs, each split into Published and Unpublished, and Add New creates either kind.

Write the query
The Definition editor highlights the Cypher as you type. Above it:
- Format tidies up the query's layout. If the Cypher has a syntax error, DCH tells you instead.
- Ask AI opens a chat that helps you write or change the query (see below).
- Fix with AI appears when a run fails. It opens the same chat with the query and the error already included.
Ask AI
Ask AI explores the graph with you and builds or refines the Cypher. Describe what you need, for example "Show all customers and the orders they placed", or pick one of the example prompts. Where your browser supports it, you can also dictate.
The Context setting controls how much of the graph the AI may look at:
- Explore graph (default): the AI inspects the available labels and relationships itself.
- Specific labels: the schema of the labels you select.
- No graph context: only your instruction and the current Cypher. Useful for small changes such as adding a
LIMIT.
Next to the chat, the AI shows its Suggested query. Choose View changes to compare it with the current query, Regenerate for another attempt, or Dismiss it. Nothing changes until you choose Use query, which saves the suggestion as a new draft version.

Ask AI uses the M4AI Agent System with the slug cypher-query-assistant. If it is not published, Ask AI is not available.
Parameters
To make a query reusable, reference parameters in the Cypher with a $ prefix (for example $city). DCH detects them automatically and lists them under Parameters, where you give each a value before running the query. For several values, enter a JSON array such as ["Graz", "Salzburg"] and use IN $city in the query.
Query timeout
Query timeout (seconds) limits how long a version of the query may run before it is cancelled. Leave it empty to use the default. Both the default (10 seconds) and the maximum (120 seconds) can be changed by your administrator; higher values are rejected when you save.
Versions
Projections are versioned like Workflows:
- Draft: the working copy you edit.
- Published: the live version. Only one version is published at a time, and publishing a draft archives the previously published one.
- Archived: a previously published version, kept for reference.
Pick a version in the Version section to see its definition, parameters and timeout. Editing a published or archived version and saving creates a new draft from it; published versions themselves stay frozen. The run button follows your choice: Execute draft runs the draft, Execute v1.0 runs that version.
The version's actions are Publish version (make it the published one) and Delete version. Deleting the last remaining version deletes the projection.
Consuming a projection
A projection is meant to be called by its Slug. Once a version is published, other systems run the query through DCH by that slug and always get the published version, without needing to know the underlying Cypher. A projection must be published before it can be consumed this way.