FAQ Database Discussion Community


Couchbase Sync Function: How to detect the current access type?

rest,crud,restrictions,couchbase-sync-gateway
I am using Couchbase's Sync Gateway and want to restrict the access to the documents. Furthermore, the individual restriction for each document should take into account what is currently happening: The document is just being read or it is either being created or changed in some way. To this end,...

How to manage Roles in Couchbase?

error-handling,passport.js,roles,couchbase,couchbase-sync-gateway
I have a Couchbase backend hosted in a remote server and I want to update my sync function in order to grant data access to users. The users are generated by Passport.js, and my trouble is to perform basic CRUD operations on roles. The official documentation says that the RESTful...

Sync Gateway creates one document per change when used with Couchbase-lite

couchbase,couchbase-lite,couchbase-sync-gateway
From what I have observed: For every document you create, a revision-manager document is also created. This revision-manager keeps track of the latest revision and also maintains a history of all revisions in an array. Every time you update a document, a new document is created (whyyyyy???). The revision-manager document's...

Integrating xamarin, CouchBaseLite, MVVMCross and SyncGateway such that View changes with database

xamarin,monodroid,mvvmcross,couchbase-lite,couchbase-sync-gateway
I am working on a xamarin project where i use CouchBase Lite as my Local database. I also want to use MVVMCross library. Could anyone specify where should i include couchbase-Lite library, MVVMCross - hot tuna library(like class library or portable class library or platform specif project) such that view...

Cannot create user in Couchbase Sync Gateway

rest,couchbase,couchbase-sync-gateway
I have a running instance of a sync gateway which is connected with a data bucket. I configured the gateway with an initial user: "firstuser": { "disabled": false, "password": "abc" } The sync gateway webview shows exactly this single user. Now I want to add another user via the REST...