Closed coreylight closed 7 years ago
I attempted to follow the example of:
gameSchema.plugin(textSearch);
But the only thing that worked for me was to run the schema through the plugin instead, after declaring extra statics such as:
gameSchema.statics = { load: function (id, cb) {//code here} }; textSearch(gameSchema);
I attempted to follow the example of:
But the only thing that worked for me was to run the schema through the plugin instead, after declaring extra statics such as: