-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
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
typeorm query spesific selecion #10853
Labels
Comments
if you are using // you can use with find, findOne, findOneOrFail
repository.find({
select: {
id: true,
role: {
id: true,
name: true,
}
},
relations: {
role: true,
},
where: {
id: In([1, 2, 3]),
}
}); and with manager.createQueryBuilder(User, 'user')
.select('user.id')
.addSelect('role.id')
.addSelect('role.name')
.innerJoin('user.role', 'role')
.where('user.id IN (:...ids)', { ids: [1, 2, 3] })
.getMany(); see https://typeorm.io/find-options, https://typeorm.io/select-query-builder, https://typeorm.io/select-query-builder#partial-selection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
Issue
Expected Behavior
there is no any mention about the spesific selection
Actual Behavior
there is no any mention about the spesific selection
Steps to reproduce
there is no any mention about the spesific selection
My Environment
Additional Context
No response
Relevant Database Driver(s)
Are you willing to resolve this issue by submitting a Pull Request?
Yes, I have the time, and I know how to start.
The text was updated successfully, but these errors were encountered: