We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90dead0 commit 9163862Copy full SHA for 9163862
1 file changed
CRUD API's/app/models/model.js
@@ -4,18 +4,15 @@ const mongoose=require('mongoose');
4
const noteSchema=mongoose.Schema({
5
title:{
6
type: String,
7
- require: true
8
},
9
author:{
10
11
12
13
content:{
14
type : String,
15
16
}
17
},{
18
timestamps: true
19
});
20
21
-module.exports=mongoose.model('Note',noteSchema);
+module.exports=mongoose.model('Note',noteSchema);
0 commit comments