jstests/serverless/create_indexes_with_tenant_migration.js
// A function, not a constant, to ensure unique UUIDs.
A function, not a constant, to ensure unique UUIDs.
A function not a constant to ensure unique UUIDs .
function donorStartMigrationCmd(tenantID, realConnUrl) {
    return {
        donorStartMigration: 1,
        tenantId: tenantID.str,
        migrationId: UUID(),
        recipientConnectionString: realConnUrl,
        readPreference: {mode: "primary"}
    };
}
function donorStartMigrationCmd ( tenantID , realConnUrl ) { return { donorStartMigration : 1 , tenantId : tenantID . str , migrationId : UUID ( ) , recipientConnectionString : realConnUrl , readPreference : { mode : "primary" } } ; }
A function, not a constant, to ensure unique UUIDs.
A function not a constant to ensure unique UUIDs .