You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @agufagit , this is because your subquery IF 1=1 then $parent.id=1 else false end is evaluating the expression $parent.id=1 instead of returning it. So the outter expression SELECT true FROM 1 WHERE ... will result in SELECT true FROM 1 WHERE true which won't return anything. I think - could be wrong.
Please let us know if that solves the issue.
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: