Error:
[Nest] 134 - 08/10/2021, 3:30:57 AM ERROR [ExceptionsHandler] Cannot read property 'name' of undefined
TypeError: Cannot read property 'name' of undefined
at Paginator.getEntityPropertyType (/usr/src/app/node_modules/typeorm-cursor-pagination/src/Paginator.ts:198:74)
at /usr/src/app/node_modules/typeorm-cursor-pagination/src/Paginator.ts:189:25
at Array.forEach ()
at Paginator.decode (/usr/src/app/node_modules/typeorm-cursor-pagination/src/Paginator.ts:187:13)
at Paginator.appendPagingQuery (/usr/src/app/node_modules/typeorm-cursor-pagination/src/Paginator.ts:115:35)
at Paginator. (/usr/src/app/node_modules/typeorm-cursor-pagination/src/Paginator.ts:76:33)
at Generator.next ()
at /usr/src/app/node_modules/typeorm-cursor-pagination/lib/Paginator.js:8:71
at new Promise ()
at __awaiter (/usr/src/app/node_modules/typeorm-cursor-pagination/lib/Paginator.js:4:12)
at Paginator.paginate (/usr/src/app/node_modules/typeorm-cursor-pagination/lib/Paginator.js:42:16)
I used the alias names for the entities. I can not use the cursor.
This is my code: ` const queryBuilder = await getConnection() .getRepository(User) .createQueryBuilder('users'); // .where('id = :id', { id: 4 });
Error:
[Nest] 134 - 08/10/2021, 3:30:57 AM ERROR [ExceptionsHandler] Cannot read property 'name' of undefined TypeError: Cannot read property 'name' of undefined at Paginator.getEntityPropertyType (/usr/src/app/node_modules/typeorm-cursor-pagination/src/Paginator.ts:198:74) at /usr/src/app/node_modules/typeorm-cursor-pagination/src/Paginator.ts:189:25 at Array.forEach (`