File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -104,12 +104,15 @@ describe('model', function() {
104
104
} ) ;
105
105
} ) ;
106
106
107
- it ( 'of embedded documents unless excludeIndexes (gh-5575)' , function ( done ) {
108
- const BlogPost = new Schema ( {
109
- _id : { type : ObjectId } ,
110
- title : { type : String , index : true } ,
107
+ it ( 'of embedded documents unless excludeIndexes (gh-5575) (gh-8343) ' , function ( done ) {
108
+ const BlogPost = Schema ( {
109
+ _id : { type : ObjectId } ,
110
+ title : { type : String , index : true } ,
111
111
desc : String
112
112
} ) ;
113
+ const otherSchema = Schema ( {
114
+ name : { type : String , index : true }
115
+ } , { excludeIndexes : true } )
113
116
114
117
const User = new Schema ( {
115
118
name : { type : String , index : true } ,
@@ -121,7 +124,8 @@ describe('model', function() {
121
124
blogpost : {
122
125
type : BlogPost ,
123
126
excludeIndexes : true
124
- }
127
+ } ,
128
+ otherArr : [ otherSchema ]
125
129
} ) ;
126
130
127
131
const UserModel = db . model ( 'gh5575' , User ) ;
You can’t perform that action at this time.
0 commit comments