feat: add relation query
This commit is contained in:
parent
aebf14ba54
commit
4dbef45d2c
1 changed files with 4 additions and 0 deletions
|
|
@ -204,6 +204,10 @@ export class ProfileController extends Controller {
|
||||||
@Get("{id}")
|
@Get("{id}")
|
||||||
async detailProfile(@Path() id: string) {
|
async detailProfile(@Path() id: string) {
|
||||||
const profile = await this.profileRepository.findOne({
|
const profile = await this.profileRepository.findOne({
|
||||||
|
relations: {
|
||||||
|
posLevel: true,
|
||||||
|
posType: true,
|
||||||
|
},
|
||||||
where: { id },
|
where: { id },
|
||||||
select: [
|
select: [
|
||||||
"id",
|
"id",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue