/* sc = schema class dbo = database object */ let schema, sc, dbo; //Construct schema schema = mongoose.Schema({ name: 'string', width: 'number', height: 'number' }); //Construct schema class //The first arg ('Rectangles') means there is db coll 'rectangles' (all lowercase) sc = mongoose.model('Rectangles', schema); //Construct database object (dbo) dbo = new sc({name: 'Foo', width: 10, height: 2});