Skip to content
New issue

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

errors #3

Open
leslyshu opened this issue Feb 18, 2018 · 0 comments
Open

errors #3

leslyshu opened this issue Feb 18, 2018 · 0 comments

Comments

@leslyshu
Copy link

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant