At this time, we do not have the provision to run N1QL queries within Couchbase Lite. We are evaluating options for hybrid platform support .
In the meantime, check out this blog post on creating a Cordova plugin for CBL 2.x and direct links to tutorials for iOS and Android . I understand that querying can be a bit tricky but if you have purpose-built query APIs instead of a generic one , then it should not be that tedious to do it on the native side and expose a JS API.