nax3t / aws-cloud9-instructions

Instructions for setting up an AWS account and using Cloud9
63 stars 30 forks source link

errors #3

Open leslyshu opened 6 years ago

leslyshu commented 6 years ago

i had an error untill when i decleared this variables befor they error trianglw could go. must i do that?

var mongoose = require('mongoose'); var date; var string; var fales; var todoSchema;

var todoSchema = new mongoose.schema({ name: { type: string, required: 'name cannot be blank' },

completed: { type: Boolean, default: fales

}, created_date:{ type: date, defualt: Date.now

},

});

var Todo = mongoose.model('Todo',todoSchema);

module.esport= Todo;