All Products
Search
Document Center

Graph Compute:Query graph data

Last Updated:Mar 21, 2024

This topic describes how to query graph data in a Graph Compute instance.

Graph Exploration page

If data backflow is complete, the data configurations and indexes of tables exist in the Graph Compute instance. You can query data on the Graph Exploration page of a graph. The results can be returned in graphs or in the JSON format. The following example shows the results in the JSON format:

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

Examples

  • Query the information about all the involved vertices.

Sample code:

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