Is it possible change document data in sync gateway

i have state for some documents and need to change that state if server get that document, even if no other local get it, is it possible?

You can use the REST API to do change the document on the server after it’s been pushed from a client. (Use the _changes feed to watch for new revisions.)

However, changing the document creates a new revision. If the clients are also pulling from the server, then they’ll pull those new revisions too, which is probably not what you want.

1 Like