js/modelload/schemaload.js
function makeMongoCollectionName(modelName) {
    if (modelName !== modelName.toLowerCase()) {
        throw new Error('expect lowercase, was ' + modelName);
    }
    if (modelName.charAt(modelName.length - 1) !== 's') {
        return modelName + 's';
    }
    return modelName;
}
function makeMongoCollectionName(modelName) {
    if (modelName !== modelName.toLowerCase()) {
        throw new Error('expect lowercase, was ' + modelName);
    }
    if (modelName.charAt(modelName.length - 1) !== 's') {
        return modelName + 's';
    }
    return modelName;
}
function makeMongoCollectionName ( modelName ) { if ( modelName !== modelName . toLowerCase ( ) ) { throw new Error ( 'expect lowercase, was ' + modelName ) ; } if ( modelName . charAt ( modelName . length - 1 ) !== 's' ) { return modelName + 's' ; } return modelName ; }
returns a mongoose collection name
@param modelName
returns a mongoose collection name