showing results for - "mongoose virtual populate paginat"
Roberto
25 Nov 2016
1Post.find({})
2.populate([
3    // here array is for our memory. 
4    // because may need to populate multiple things
5    {
6        path: 'user',
7        select: 'name',
8        model:'User',
9        options: {
10            sort:{ },
11            skip: 5,
12            limit : 10
13        },
14        match:{
15            // filter result in case of multiple result in populate
16            // may not useful in this case
17        }
18    }
19])
20.exec((err, results)=>{
21   console.log(err, results)
22})