Sample Mock Graph Queries

Our Mock Graph Data is made to look like operational data from a micro service web application. Here we imagine cypher queries we might run against it.

Find the manager with the most direct reports.

match (p:Person)-[:Manager]->(b:Person) return b.name as boss, collect(p).size as reports order by reports descending

Find the projects with the largest teams.

match (m:Person)-->(p:Project) match (p) -->(:Service)<--(e:Person) return m.name as Manager, p.name as Project, collect(distinct e) as Engineers order by Engineers.size

Find the production service configuration and load distribution suitable for graphing, nodes and edges.

match (s:Service {env:'production'})-->(t:Traffic) optional match (s) -[:Downstream]-> (d:Service) return s.name, t.load, d.name

We expand query results by expanding each line of dot format text for all available results.

digraph { {s.name} [label="{s.load}\n{s.name}"] {s.name} -> {d.name} }