Disparity in Query Capabilities on Couchbase Lite 2.0 and Couchbase Server

n1ql

#1

Is there any document that lists the difference of Query capabilities on CBL 2.0 and the server? So far we figured out things like while subquery is allowed on the server it is not on the mobile side.

Thanks in advance!


#2

No, we do not that documented at this time. (CC @jamesnocentini)


#3

This wiki page has a pretty comprehensive description of what queries can do, although it’s expressed in the underlying JSON schema that Couchbase Lite Core uses. (CBL’s query API ends up generating this JSON and sending it to LiteCore.)


#4

Just curious, is there any plan to expose the CBL API that takes the queries constructed in these JSONs directly?


#5

Curious - Why would you want that ? The native platform APIs is intended to provide a language idiomatic , fluent interface around this …


#6

Probably not, though it could be useful to allow queries to be serialized/archived, where the serialized form would happen to contain the JSON in it. Perhaps combined with a query-builder tool that produces such blobs. Then you could ship the query as a resource in your app and save a bit of code.


#7

That’s a nifty suggestion :slight_smile: