Run Queries
Last updated
Was this helpful?
Last updated
Was this helpful?
We already built a graph and composed a query. We are now ready to test it out agains the database!
Now the Gremlify Results panel should look like that:
Meaning we did not execute any query yet.
Assuming we have a Simple Graph with only one Vertex:
And a query:
Let's run it against the graph, by simply clicking on "Run" in the main toolbar:
Now the above Query result panel shows:
Every query you run in your session will be saved into the query history, which is available in the platform sidebar:
Clicking on an item will load this query into your Workspace query editor.
The results JSON view displays the data in a JSON form.
Sometimes it is more appealing to see the results in a tabular view. To switch to Table view, simple click on the Table icon:
Let's take a look on an actual Table view, produced by the following query:
Ordering columns is done by clicking on the column header
As stated above, some query results will not have a proper tabular representation and therefor will display the following query and results:
Everyone makes mistakes, but no worries, in case you have an error in your query, Gremlify will give you the most detailed error message as possible.
Some errors might occur due to Gremlin syntax errors:
In this case, Gremlify will switch to error view:
In some other cases, your query syntax is just fine, but the actual run against the database encountered a Runtime Exception:
You will now see: