File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " normalize-mongoose" ,
3- "version" : " 0.0.1-alpha " ,
3+ "version" : " 0.0.1" ,
44 "description" : " Normalize Mongoose JSON output" ,
55 "license" : " MIT" ,
66 "repository" : " abranhe/normalize-mongoose" ,
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ $ npm install abranhe@normalize-mongoose
2222import mongoose from ' mongoose' ;
2323import normalize from ' normalize-mongoose' ;
2424
25- const pesonSchema = mongoose .Schema ({
25+ const personSchema = mongoose .Schema ({
2626 name: String ,
2727 age: Number ,
2828});
2929
30- pesonSchema .plugin (normalize);
30+ personSchema .plugin (normalize);
3131```
3232
3333See how ` normalize-mongoose ` will clean the the JSON output:
@@ -57,16 +57,16 @@ See how `normalize-mongoose` will clean the the JSON output:
5757import mongoose from ' mongoose' ;
5858import normalize from ' normalize-mongoose' ;
5959
60- const pesonSchema = mongoose .Schema ({
60+ const personSchema = mongoose .Schema ({
6161 name: String ,
6262 age: Number ,
6363 email: String ,
6464 password: { type: String , private: true },
6565});
6666
67- pesonSchema .plugin (normalize);
67+ personSchema .plugin (normalize);
6868
69- const Person = mongoose .model (' Person' , pesonSchema );
69+ const Person = mongoose .model (' Person' , personSchema );
7070const someone = new Person ( {
7171 name: ' Abraham' ,
7272 age: 33 ,
You can’t perform that action at this time.
0 commit comments