Feature(s) impacted
Displaying many to many relation with no primary id in the dashboard.
I do understand the error, I just want to find a solution that won’t force me to modify the database to get it work. Please can you tell me if there is one ?
PS : by the way, where can we find the whole documentation for NestJs.
Observed behavior
I can not reach the data : the message display in the backend is
This collection has no primary key
I am using Forest Admin with NestJs
Expected behavior
I want to be able to reach the data and add Tags to Event in my case (see screenshot)
Failure Logs
This collection has no primary key
Error: This collection has no primary key
at Function.packId (/home/wghanem/repo/silencio-backoffice/node_modules/@forestadmin/agent/src/agent/utils/id.ts:20:13)
at Object.beforeSerialize (/home/wghanem/repo/silencio-backoffice/node_modules/@forestadmin/agent/src/agent/services/serializer.ts:83:33)
at JSONAPISerializer.serializeResource (/home/wghanem/repo/silencio-backoffice/node_modules/json-api-serializer/lib/JSONAPISerializer.js:565:22)
at /home/wghanem/repo/silencio-backoffice/node_modules/json-api-serializer/lib/JSONAPISerializer.js:560:14
at Array.map (<anonymous>)
at JSONAPISerializer.serializeResource (/home/wghanem/repo/silencio-backoffice/node_modules/json-api-serializer/lib/JSONAPISerializer.js:559:19)
at JSONAPISerializer.serialize (/home/wghanem/repo/silencio-backoffice/node_modules/json-api-serializer/lib/JSONAPISerializer.js:110:27)
at Serializer.serialize (/home/wghanem/repo/silencio-backoffice/node_modules/@forestadmin/agent/src/agent/services/serializer.ts:19:51)
at Serializer.serializeWithSearchMetadata (/home/wghanem/repo/silencio-backoffice/node_modules/@forestadmin/agent/src/agent/services/serializer.ts:34:26)
at ListRelatedRoute.handleListRelated (/home/wghanem/repo/silencio-backoffice/node_modules/@forestadmin/agent/src/agent/routes/access/list-related.ts:38:54)
Context
- Project name: Silencio
- Team name: Silencio
- Environment name: Production
- Agent type & version: Liana Version 1.0.0-beta.58