Lesson 5 - Creating complex graph queries

Complex queries enable you to have fine grained control over the subgraph that gets visualized.

When building a complex query, you set constraints on the paths that you want to appear on the final graph. A complex query is comprised of a series of 'steps'. Each step of the query is matched by a node of the matching paths.

Suppose we are starting with this graph and we would like to see just the products of each industry.

3 min read - Start now

Step 1

At the top click on 'Graph'. Then on the left, click on 'Complex' tab.

Step 2

Let's configure the first step of our query. On the left, click next to 'Tables'.

Step 3

Select the tables that you want to allow as starting nodes of the matching path ('Industry' in this case). Click on the checkboxes on the right of the popup. Then, click on 'Confirm'.

Step 4

Add a new step. Click on the '+' sign on the left of the screen.

Step 5

Click on 'Select connected nodes'.

Step 6

Select the connections you want to allow for next step ('Companies' in this case). Click next to 'Type' and then click the option that contains 'Company' and 'Industry'.

Step 7

Hide it, as we don't want to see 'Companies' in the final visualization. Click on the checkbox next to 'Display nodes from this step'.

Step 8

Add one more step. Click on the '+' sign on the left of the screen. Then click on 'Select connected nodes'.

Step 9

Select 'Product'. Click next to 'Type' and then click the option that contains 'Company' and 'Product'.

Step 10

This should be the displayed graph.

Next

Lesson 6 - Drawing graphs

Draw your graph from scratch by creating nodes and building relationships with our "Edit Mode" feature.