"Nesting performs a join across two buckets. But instead of producing a cross-product of the left and right hand inputs, a single result is produced for each left hand input, while the corresponding right hand inputs are collected into an array and nested as a single array-valued field in the result object."
Couchbase Query Language, known as N1QL and pronounced "Nickel", is a query language for finding data in Couchbase Server. N1QL is designed to be human readable and writable. It is a language designed for ad-hoc querying. The query language is a standard semantic used to build querying ability in other databases.
S. Shah, R. Wei, D. Kolovos, L. Rose, R. Paige, and K. Barmpis. Model-Driven Engineering Languages and Systems, volume 8767 of Lecture Notes in Computer Science, Springer International Publishing, (2014)
Y. Huang, and T. Luo. Pervasive Computing and the Networked World, volume 8351 of Lecture Notes in Computer Science, Springer International Publishing, (2014)