So, while going through Couchbase Sync Gateway i came across a note:
Note: Do not add, modify or remove data in the bucket using Couchbase Server SDKs or the Admin Console, or you will confuse Sync Gateway. To modify documents, we recommend you use the Sync Gateway's REST API.
Now, one of my use-cases is to use
buckets as a DB per user, but also at the same time being able to sync that data offline.
Sometime i would like modifications, updates to happen through the HTTP API, but from what i saw the API of Sync Gateway is a bit limited, so in a way using Couchbase Server SDK would make more sense. (Like using Ottoman, for Data modeling, and N1QL).
My plan is to use Pouch on the browser client, and backend Ottoman, and on some other cases develop some API that interface directly with Couchbase Server.
(I come from CouchDB background, and Couchbase provides more tools, and in the future if we need Enterprise Level, we would switch to that)