
flexrep.configurationDomainIds() as Sequence
This function returns the IDs of the domains configured for the Master database.
const flexrep = require('/MarkLogic/flexrep');
flexrep.configurationDomainIds();
// Returns the IDs of the domains used by the database on which the query
// is executed.
http://marklogic.com/xdmp/privileges/flexrep-admin
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.