jstests/free_mon/libs/free_mon.js
/**
 * Get registration document.
 *
 * @param {object} registration document
 */
Get registration document.
@param {object} registration document
Get registration document . @param { object } registration document
function FreeMonGetRegistration(conn) {
    'use strict';
    const admin = conn.getDB("admin");
    const docs = admin.system.version.find({_id: "free_monitoring"});
    const da = docs.toArray();
    return da[0];
}
function FreeMonGetRegistration ( conn ) { 'use strict' ; const admin = conn . getDB ( "admin" ) ; const docs = admin . system . version . find ( { _id : "free_monitoring" } ) ; const da = docs . toArray ( ) ; return da [ 0 ] ; }
Get registration document.
Get registration document .