Should I change the pattern with the repository with nestjs prisma?
Any other way recommended?
async findAll(filter: FindAllDto) {
try {
let where = {
softDelete: false,
};
const found = await this.accountRepository.findAll({
orderBy: {
id: filter.sort,
},
where,
page: Number(filter.offset),
perPage: Number(filter.limit),
});
return found;
} catch (error) {
throw error;
}
}