Hi all,
I am new using Couchbase Server and Sync Gatway. Could I request any experts help me to resolve the problem about new document Sync. We created new document into Couchbase Server through JAVA API as below:
Cluster cluster = CouchbaseCluster.create("ip");
Bucket bucket = cluster.openBucket("our bucket");
Map<String,Object> result = new ObjectMapper().readValue(new File("D:\\TEST.JSON"), HashMap.class);
JsonObject json = JsonObject.from(result);
JsonDocument doc = JsonDocument.create(pk, json);
JsonDocument inserted = bucket.upsert(doc);
cluster.disconnect();
We would like to sync the new created document to Sync Gateway for further processing. How can I achieve this purpose. Many thanks for help