0
votes

A little of background, I have a Couchbase to store endpoints that other developers souldn't know, on the app init I load the endpoints in a var. Sometimes we change the endpoints but when we do we need to restart node.

So I want to detect document changes in Couchbase Server, to make another call to the bucket and update the documents.

I read about Sync-Gateway but I think is only valid for Couchbase Mobile.

1

1 Answers

1
votes

You can interface with the REST API provided by Sync Gateway to detect document changes . You will have to configure your Sync Gateway so it imports the documents from the Couchbase server and adds relevant "sync" metadata to the documents.

Which version of the server are you using - depending on your response, what you would have to do will vary.