Sync with Couchbase server (community version) not happening , whenever a json document is pushed to local client database, its not syncing with server.
Following is the code I am trying to execute when a document is inserted to local client db.
ProductId exists in my json doc which is pushed to client pouchdb
localpouchDB.replicate.to(remote couchBaseUrl + “mydb”, {
live: true,
filter: function (doc) {
return doc.productId== productId;
},
});
localpouchDB.replicate.from(remote couchBaseUrl + "mydb", {
live: true,
filter: function (doc) {
return doc.ProductId== productId;
},
});
Same code works on initial load of app when local client db is initialized.
Please help.
2 posts - 2 participants