js/modelload/schemaload.js
function loadModelNames(modelPath) {
    modelPath = modelPath || envModelPath;
    debuglog(() => `modelpath is ${modelPath} `);
    var mdls = FUtils.readFileAsJSON('./' + modelPath + '/models.json');
    mdls.forEach(name => {
        if (name !== makeMongoCollectionName(name)) {
            throw new Error('bad modelname, must terminate with s and be lowercase');
        }
    });
    return mdls;
}
function loadModelNames(modelPath) {
    modelPath = modelPath || envModelPath;
    debuglog(() => `modelpath is ${modelPath} `);
    var mdls = FUtils.readFileAsJSON('./' + modelPath + '/models.json');
    mdls.forEach(name => {
        if (name !== makeMongoCollectionName(name)) {
            throw new Error('bad modelname, must terminate with s and be lowercase');
        }
    });
    return mdls;
}
function loadModelNames ( modelPath ) { modelPath = modelPath || envModelPath ; debuglog ( ( ) => ` ${ modelPath } ` ) ; var mdls = FUtils . readFileAsJSON ( './' + modelPath + '/models.json' ) ; mdls . forEach ( name => { if ( name !== makeMongoCollectionName ( name ) ) { throw new Error ( 'bad modelname, must terminate with s and be lowercase' ) ; } } ) ; return mdls ; }
load the models
load the models