Erick Cinco

Results 5 comments of Erick Cinco

Hermano, encontre la solucion, no es tanto una solucion potente, pero es lo que hay, toca que lo importes directamente asi bro, con el [ var aggregatePaginate = require("mongoose-aggregate-paginate-v2"); ]...

Brother, I found the solution, it is not so much a powerful solution, but it is what it is, just import it directly like this bro, with [ var addedPaginate...

![image](https://user-images.githubusercontent.com/55382665/156520177-810e2ae3-58bd-46ae-a0c8-d386a9318c84.png)

And here is one query: ![image](https://user-images.githubusercontent.com/55382665/156520535-d1a916f0-e6fd-40ff-a4a8-e5dbb3b11d0b.png)

I forgot add this, if u want use the typed of result queries, you should add this ![image](https://user-images.githubusercontent.com/55382665/156610208-53c82afa-1bbf-4af3-a54a-63898b330fca.png) into ![image](https://user-images.githubusercontent.com/55382665/156610416-a47c99cb-dcbe-4aa0-ad87-833f11bbeece.png)