feat: Include agent field values and their associated field details in agent data retrieval.

This commit is contained in:
pradeepkumar committed 2026-02-01 22:46:08 +05:30
1 parent bc830a0208
commit 05ab2774a4
1 file changed
+11
+11
View File
@@ -283,6 +283,17 @@ export class AgentsService {
},
},
agentType: true,
fieldValues: {
include: {
field: {
select: {
slug: true,
name: true,
fieldType: true,
},
},
},
},
},
}),
this.prisma.agentProfile.count({ where }),