joefagan commented on issue #158:
URL: https://github.com/apache/incubator-age/issues/158#issuecomment-994161803


   I've tried your commands in Postgres with AGE extension using the command 
line utility psql. I get the following - all as expected - shown below.
   
   Does it work correctly using psql?
   Can you isolate the line in your code that produces the error?
   
   Maybe someone else can help with the error "no binary output function 
available for type" which I think is coming from postgres.
   
   ```
   /* These are the queries I tried that appears in your code */
   SELECT create_graph('text_test');
   
   SELECT count(*) from ag_graph where name='text_test';
   
   SELECT * from cypher('text_test', $$ 
           CREATE (:node {Name: '1st Node'})
           CREATE (:node {Name: '2nd Node'})   
   $$) as ( col agtype);
   
   SELECT * from cypher('text_test', $$ MATCH (V:node) RETURN V $$) as (V 
agtype);
   ```
   
   
   postgres=# SELECT create_graph('text_test');
   NOTICE:  graph "text_test" has been created
    create_graph
   --------------
   
   (1 row)
   
   postgres=# SELECT count(*) from ag_graph where name='text_test';
    count
   -------
        1
   (1 row)
   
   postgres=# SELECT * from cypher('text_test', $$
   postgres$#         CREATE (:node {Name: '1st Node'})
   postgres$#         CREATE (:node {Name: '2nd Node'})
   postgres$# $$) as ( col agtype);
    col
   -----
   (0 rows)
   
   postgres=#
   postgres=# SELECT * from cypher('text_test', $$ MATCH (V:node) RETURN V $$) 
as (V agtype);
                                             v
   
--------------------------------------------------------------------------------------
    {"id": 844424930131969, "label": "node", "properties": {"Name": "1st 
Node"}}::vertex
    {"id": 844424930131970, "label": "node", "properties": {"Name": "2nd 
Node"}}::vertex
   (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