You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by GitBox <gi...@apache.org> on 2021/12/02 10:04:14 UTC

[GitHub] [incubator-age] pdpotter commented on issue #151: Can you add support for other field types for vertexes?

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: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org