pdpotter commented on issue #151:
URL: https://github.com/apache/incubator-age/issues/151#issuecomment-984475898


   Can you explain in more detail what doesn't work out for you? I do get 
expected results with your queries:
   
   ```
   SELECT * FROM ag_catalog.cypher('test_graph', $$CREATE (n:Person {name: 
'top_node', attrib: {myclass: 'id'}}) return n$$) as (n agtype);
   
                                                             n                  
                                        
   
---------------------------------------------------------------------------------------------------------------------
    {"id": 844424930131970, "label": "Person", "properties": {"name": 
"top_node", "attrib": {"myclass": "id"}}}::vertex
   (1 row)
   ```
   
   ```
   SELECT * FROM ag_catalog.cypher('test_graph', $$CREATE (n:person {name: 
'Joe', attrib: [{myclass: 'id'}]}) return n$$) as (n agtype);
                                                           n                    
                                     
   
------------------------------------------------------------------------------------------------------------------
    {"id": 844424930131971, "label": "person", "properties": {"name": "Joe", 
"attrib": [{"myclass": "id"}]}}::vertex
   (1 row)
   ```
   
   ```
   SELECT * FROM ag_catalog.cypher('test_graph', $$MATCH (n:person) return 
n.name, n.attrib$$) as (name agtype, attrib agtype);
       name    |       attrib        
   ------------+---------------------
    "top_node" | {"myclass": "id"}
    "Joe"      | [{"myclass": "id"}]
   (2 rows)
   ```


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