jrgemignani commented on issue #935:
URL: https://github.com/apache/age/issues/935#issuecomment-1569344199

   @safi50 Please note that the query `match ()-[r]-()  return count (r)` is 
directionless. This means that it will match an edge going 1 direction, twice, 
because it does not care about direction.
   
   ```
   psql-11.5-5432-pgsql=# select from create_graph('test');
   NOTICE:  graph "test" has been created
   --
   (1 row)
   
   psql-11.5-5432-pgsql=# SELECT * FROM cypher('test', $$ create 
()-[:knows]->() $$) as (r agtype);                                     r
   ---
   (0 rows)
   
   psql-11.5-5432-pgsql=# SELECT * FROM cypher('test', $$ match 
p=()-[:knows]-() return count(p) $$) as (r agtype);
    r
   ---
    2
   (1 row)
   
   psql-11.5-5432-pgsql=# SELECT * FROM cypher('test', $$ match 
p=()-[:knows]->() return count(p) $$) as (r agtype);
    r
   ---
    1
   (1 row)
   
   psql-11.5-5432-pgsql=#
   
   ```


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