Couchbase lite 2.0: how to query with an n1ql string

That’s not supported. Both because it would require reimplementing the N1QL parser, and to make the product more supportable — because the type-checked API eliminates lots of N1QL syntax errors and other mistakes (which often result in support tickets from customers.)