feat: Include agent field values and their associated field details in agent data retrieval.
This commit is contained in:
@@ -283,6 +283,17 @@ export class AgentsService {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
agentType: true,
|
agentType: true,
|
||||||
|
fieldValues: {
|
||||||
|
include: {
|
||||||
|
field: {
|
||||||
|
select: {
|
||||||
|
slug: true,
|
||||||
|
name: true,
|
||||||
|
fieldType: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
this.prisma.agentProfile.count({ where }),
|
this.prisma.agentProfile.count({ where }),
|
||||||
|
|||||||
Reference in New Issue
Block a user