Graph query

Updated at:

Graph Compute iGraph provides a graph query feature.

Graph query

After data backflow is complete, the data table configurations and indexes are available in the instance cluster. You can click Graph Query to validate the data. The results are displayed in either graph or JSON format. The following code shows a sample JSON result:

{
  "result": [
    {
      "data": [
        {
          "label": "person",
          "age": "3",
          "name": "2",
          "pk": "1"
        }
      ],
      "error_info": [],
      "trace_info": {}
    }
  ],
  "error_info": []
}

Query examples

  • Retrieve all node traversal paths from a query.

Example:

g("qinxin_test_0106").V("1001;1002").hasLabel("node_0").outE().inV().path()