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}")
|
||||
async detailProfile(@Path() id: string) {
|
||||
const profile = await this.profileRepository.findOne({
|
||||
relations: {
|
||||
posLevel: true,
|
||||
posType: true,
|
||||
},
|
||||
where: { id },
|
||||
select: [
|
||||
"id",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue