https://forums.couchbase.com/t/typeerror-first-argument-needs-to-be-a-viewquery-spatialquery-or-n1qlquery/8834