Couchbase lite 2.0: how to query with an n1ql string

Under the hood, CBL generates the query in a JSON format and passes that to our query engine. It would be pretty ideal for a JavaScript API to just use that format; unfortunately CBL has no public API to create a Query object directly from JSON.