createBasicSchemaDefinition.js 245 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 "use strict"; exports.__esModule = true; var mongoose_1 = require("mongoose"); var schema = new mongoose_1.Schema({ name: { type: 'String' } }); var Test = mongoose_1.model('Test', schema); var doc = new Test({ name: 'foo' }); doc.name = 'bar';