savannabits / typeorm-pagination

A Pagination plugin for Node Express with TypeORM
MIT License
48 stars 8 forks source link

Can't call paginate() #10

Open bitols opened 2 years ago

bitols commented 2 years ago

Hi! I can't call paginate() in createQueryBuilder() image

berk2s commented 2 years ago

same for me

pauloendoh commented 2 years ago

For me, it worked when I added the middleware right after calling the express() method

const app = express();
app.use(pagination);

I was having a similar problem of "paginate is not a function" when I was inserting the middleware after all the other ones.

mrajnansky commented 11 months ago

For me, it worked when I added the middleware right after calling the express() method

const app = express();
app.use(pagination);

I was having a similar problem of "paginate is not a function" when I was inserting the middleware after all the other ones.

Hi this is not working for me.. any ideas?

rddev088 commented 10 months ago

Issue can be related to the typeorm version you are using at the moment it may work with typeorm version "typeorm": "^0.2.25",