Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. schema.plugin(mongooseSearchPlugin);
  2.  
  3. schema.plugin(mongooseSearchPlugin);
  4. schema.plugin(mongoosePaginatePlugin);
  5.  
  6. const myPlugins = [ mongooseSearchPlugin, mongoosePaginatePlugin ];
  7.  
  8. myPlugins.forEach(plugin => schema.plugin(plugin));
  9.  
  10. // Or you can you block style
  11. myPlugins.forEach((plugin) => {
  12. schema.plugin(plugin);
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement