 The access control limitations in Apache CouchDB are a big part of what we addressed in Couchbase Sync Gateway. Info about our Sync Function API <a href="http:&#x2F;&#x2F;developer.couchbase.com&#x2F;documentation&#x2F;mobile&#x2F;1.1.0&#x2F;get-started&#x2F;get-started-mobile&#x2F;cloud-sync-function&#x2F;sync-function-example&#x2F;index.html" rel="nofollow">http:&#x2F;&#x2F;developer.couchbase.com&#x2F;documentation&#x2F;mobile&#x2F;1.1.0&#x2F;ge...</a>