In YAQL expressions, the dict.where(), dict.select(), and dict.selectMany() methods accept a selector predicate, where the input to the predicate is $, and global variable references are not allowed in those predicates (you have to use let() to assign them to other variables). This means that any references aren't global context variable references and should not be converted to ctx() automatically.
We do a lot of "parsing" with regular expressions, so this might not be 100% possible, but it would be nice to see if we can avoid converting $ that shouldn't be converted.
In YAQL expressions, the
dict.where()
,dict.select()
, anddict.selectMany()
methods accept a selector predicate, where the input to the predicate is$
, and global variable references are not allowed in those predicates (you have to uselet()
to assign them to other variables). This means that any references aren't global context variable references and should not be converted toctx()
automatically.We do a lot of "parsing" with regular expressions, so this might not be 100% possible, but it would be nice to see if we can avoid converting
$
that shouldn't be converted.