glynnbird commented on issue #322:
URL: https://github.com/apache/couchdb-nano/issues/322#issuecomment-1386719578

   Thanks for the reports @jkeczan but I don't think "replication.enable" is 
doing anything unexpected here. As you can see from the 
[code](https://github.com/apache/couchdb-nano/blob/main/lib/nano.js#L586-L598), 
its job is to create a document in the `_replicator` database  with a source 
and target in it. 
   
   If I were you I would just write the document yourself and you get complete 
control:
   
   e.g.
   
   ```js
   const replicator = nano.db.use('_replicator')
   const doc = {
     source: 'https://mysourceurl.com/a',
     target: 'https://myothersourceurl.com/b',
     create_target: true
   }
   await replicator.insert(doc)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to