MironAtHome opened a new issue, #1984:
URL: https://github.com/apache/age/issues/1984
For all currently maintained branches and postgres / age versions, the
behavior of the request
```
SELECT *
FROM cypher('test_graph', $$
MATCH (v)
WITH label(v) as vlabel
RETURN vlabel
$$) AS t(a agtype);
```
is to return an label only, if label has rows.
If the label is created using
`SELECT create_vlabel('<graph_name>', '<vertice_name>')`
vertex will be present, subsequent calls will produce message
```
ERROR: label "<vertex_name>" already exists
SQL state: 3F000
```
however, check for existence using query above won't work.
How is it affects my program.
I need to be able to issue call to create and subsequently, whether rows
present or not, create an index or set of indexes on the vertex.
Request:
Please chose best variant and create either
1 two function label_exists and label_type, with input parameter label_name
2 two fuctions vertex_exists and edge_exists
Personally I would prefer variant 2.
--
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]