Where Union of Labels
Open
override-stale
question
- Dominant language
- C
- Stars
- 4.8k
- Forks
- 523
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 9
Description
Hi, how do I run this?
```sql
SELECT * FROM cypher('playground', $$
MATCH (n:Movie|Person)
RETURN n
$$) AS (v agtype)
```
I get
```markdown
Query 1 ERROR at Line 31: : ERROR: syntax error at or near "|"
LINE 2: MATCH (n:Movie|Person)
^
```
Is this the only way to get what I want?
```sql
SELECT * FROM cypher('playground', $$
MATCH (n)
WHERE label(n) = 'Movie' or label(n) = 'Person'
RETURN n
$$) AS (v agtype)
```
Contributor guide
Assessment
This issue has not been assessed yet.