Hi @rickiehui,
Unfortunately, it’s currently not possible to write documents to a Couchbase Server bucket and have them processed by Sync Gateway.
This is because the documents need to go through Sync Gateway in order to compute the access rules based on the Sync Function.
Sync Gateway has a REST API. In this tutorial, you can learn how to import documents in bulk to Sync Gateway if that helps.
It’s safe to do read operations with the Couchbase Server SDKs on the same bucket Sync Gateway is using but all write operations should go through Sync Gateway.
James