We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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;
The text was updated successfully, but these errors were encountered: