How to use sub-query in n1ql

I tried replying earlier. One document needs to contain the external key (primary key) of the other document.

1 Like