apache / apache/age

Where Union of Labels

Open
#1,714 11 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.