InvalidReferenceError: cannot reference correlated set, when updating within an IF statement #6540
Unanswered
alrhalford
asked this question in
Q&A
Replies: 1 comment
-
Running into a similar or the same issue: an expression in a with block is flagged by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am having some trouble, and I would appreciate some help!
I have the following schema:
The idea being that if you have not interacted with a comment (or you have 'uninteracted', i.e. unliked), it is not in your 'comment' multi link, but if you have, then the comment will be in the set, with a link property depending on whether you liked it or disliked it.
I am trying to write a query that processes this, and I've managed to arrive here:
Which gives the error:
InvalidReferenceError: cannot reference correlated set 'current_interaction' here
.I would be grateful for any help, since I am not really sure where to go from here.
Beta Was this translation helpful? Give feedback.
All reactions