We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
In your structure that can create specific repository in directory repository(for exemple) adn for exemple do a finction like :
@EntityRepository(Evaluation) export class EvaluationRepository extends Repository<Evaluation> { public getListDatesEvaluation( beneficiaireId: number ): Promise<Evaluation[] | undefined> { return this.createQueryBuilder('evaluation') .select() .leftJoinAndSelect('evaluation.usagers', 'usagers') .where('usagers.id IN (:beneficiaireId)', { beneficiaireId, }) .orderBy('evaluation.dateEvaluation', 'DESC') .getMany(); } }
Thanks
The text was updated successfully, but these errors were encountered:
Hi!
Do you mean whether it would be possible to do this from the repository? which file exactly do you mean?
Sorry, something went wrong.
I mean to create a file name EvaluationRepository and in this add fonctions and call the repository in controller or another service ...
yes sure why not, sounds good
No branches or pull requests
Hello,
In your structure that can create specific repository in directory repository(for exemple) adn for exemple do a finction like :
Thanks
The text was updated successfully, but these errors were encountered: