Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Support OPTIONAL MATCH as the first MATCH clause of a query #40

Closed
jmarton opened this issue Dec 17, 2016 · 1 comment
Closed

Support OPTIONAL MATCH as the first MATCH clause of a query #40

jmarton opened this issue Dec 17, 2016 · 1 comment
Assignees
Labels

Comments

@jmarton
Copy link
Contributor

jmarton commented Dec 17, 2016

We should support single queries that has an OPTIONAL MATCH clause as their first MATCH clause.

E.g. the following should return a singlle null-row, provided, there is no vertex having the label NON_EXISTENT_LABEL.

OPTIONAL MATCH (n:NON_EXISTENT_LABEL)
RETURN n

Note: this implies that all MATCH clauses in this single query is OPTIONAL MATCH.

@jmarton jmarton changed the title Support single OPTIONAL MATCH query Support OPTIONAL MATCH as the first MATCH clause of a query Dec 17, 2016
@szarnyasg
Copy link
Member

As we discussed, one possible way to achieve is to use something similar to Oracle's DUAL table.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants