Hey
I'm having problems using a declared variable as index for an array within a document.
In AQL i can write
LET myIdx = POSITION(['a','b','n','q'],'n', true)
LET changed = ((changeIdx > -1) ? MERGE(oldDocument.collection, otherDocument.collection[myIdx]) : e)
RETURN changed
but aqb.ref('otherDocument.collection[myIdx]') fails with the error
"message": "Not a valid simple reference: changes[myIdx]"
How do i use a reference value as index in a reference array?
Thanks :)