https://docs.couchbase.com/server/current/analytics/6_n1ql.html
is out of date:
https://docs.google.com/presentation/d/1Rldc-60HnrseJUiCOsptZ37RTtXWrvyGgZKwbHn_-50/edit?usp=sharing
has the latest info