Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validating WHERE (value in property) #555

Open
nafraf opened this issue Mar 3, 2023 · 0 comments
Open

Validating WHERE (value in property) #555

nafraf opened this issue Mar 3, 2023 · 0 comments

Comments

@nafraf
Copy link

nafraf commented Mar 3, 2023

Hi, I have a question about the following query:

CREATE (a{z:1}), (b{z:'a'}), (c{z:[1,2]}), (d)
MATCH (a) WHERE (1 in a.z) RETURN a

a.z is not a list, then I'm not sure what of the following options is the expected result:

  1. Type mismatch error, because IN expects a list as argument.
  2. Process each a.z individually, and if a.z is a list returns 1 in a.z, else return 1 = a.z
    For the example above, the result would be: TRUE, FALSE, TRUE, NULL

Thanks in advance

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

No branches or pull requests

1 participant