KamleshKumar427 opened a new pull request, #1011:
URL: https://github.com/apache/age/pull/1011
Output formate change as required in the front end:
Now output format for a query like: " SELECT * from cypher('test_graph', $$
MATCH (V)-[R]-(V2) RETURN V,R,V2 $$) as (V agtype, R agtype, V2 agtype);" is:
```
{
"rows": [
{
"r": {
"end_id": 844424930131970,
"id": 1125899906842625,
"label": "Edge",
"properties": {
"type": "Edge 1"
},
"start_id": 844424930131969
},
"v": {
"id": 844424930131969,
"label": "Node",
"properties": {
"name": "Node 1"
}
},
"v2": {
"id": 844424930131970,
"label": "Node",
"properties": {
"name": "Node 2"
}
}
},
{
"r": {
"end_id": 844424930131970,
"id": 1125899906842625,
"label": "Edge",
"properties": {
"type": "Edge 1"
},
"start_id": 844424930131969
},
"v": {
"id": 844424930131970,
"label": "Node",
"properties": {
"name": "Node 2"
}
},
"v2": {
"id": 844424930131969,
"label": "Node",
"properties": {
"name": "Node 1"
}
}
},
{
"r": {
"end_id": 844424930131972,
"id": 1125899906842626,
"label": "Edge",
"properties": {
"type": "Edge 2"
},
"start_id": 844424930131971
},
"v": {
"id": 844424930131971,
"label": "Node",
"properties": {
"name": "Node 3"
}
},
"v2": {
"id": 844424930131972,
"label": "Node",
"properties": {
"name": "Node 4"
}
}
},
{
"r": {
"end_id": 844424930131972,
"id": 1125899906842626,
"label": "Edge",
"properties": {
"type": "Edge 2"
},
"start_id": 844424930131971
},
"v": {
"id": 844424930131972,
"label": "Node",
"properties": {
"name": "Node 4"
}
},
"v2": {
"id": 844424930131971,
"label": "Node",
"properties": {
"name": "Node 3"
}
}
}
],
"columns": [
"v",
"r",
"v2"
],
"rowCount": 4,
"command": "SELECT"
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]