mingfang commented on PR #1779:
URL: https://github.com/apache/age/pull/1779#issuecomment-2072398757

   I've created a full stack "AGE viewer" that has a frontend sending pure 
cypher to an API backend.
   For example.
   This frontend URL
   
https://age-playground.rebelsoft.com/graph/playground?q=MERGE%20(v1%3AHELLO)-%5Be%3ATO%5D-%3E(v2%3AWORLD)%0ARETURN%20*
   
   makes this API call
   
   
https://age-playground.rebelsoft.com/api/graph/playground/cypher?q=MERGE%20(v1%3AHELLO)-%5Be%3ATO%5D-%3E(v2%3AWORLD)%0ARETURN%20*
   
   and the result is in JSON
   ```json
   {
       "sql": "\n            SELECT * FROM cypher('playground', $$\n            
    MERGE (v1:HELLO)-[e:TO]->(v2:WORLD)\nRETURN *\n            $$) AS (v1 
agtype, e agtype, v2 agtype)\n        ",
       "data": [
           {
               "v1": {
                   "id": 1407374883553281,
                   "label": "HELLO",
                   "properties": {}
               },
               "e": {
                   "id": 1688849860263937,
                   "label": "TO",
                   "end_id": 1970324836974593,
                   "start_id": 1407374883553281,
                   "properties": {}
               },
               "v2": {
                   "id": 1970324836974593,
                   "label": "WORLD",
                   "properties": {}
               }
           }
       ]
   }
   ```
   


-- 
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]

Reply via email to