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
Bug: $parent doesn't work in if statement in subquery #3960
Labels
question
Further information is requested
Comments
Hey @agufagit , this is because your subquery |
phughk
added
question
Further information is requested
and removed
bug
Something isn't working
triage
This issue is new
labels
May 13, 2024
let me rewrite this query select 1 from [{id: 1}] WHERE array::len(SELECT true FROM 1 WHERE (IF 1=1 then $parent.id=1 else false end)) > 0
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
$parent doesn't work in if statement in subquery
Steps to reproduce
nothing returns
Expected behaviour
returns
SurrealDB version
surreal 1.4.0
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: