- Strapi Version:
- Operating System:
- Node Version:
- NPM Version:
- Yarn Version:
I am using the latest strapi and I have a collection which collects user responses. I have a collection of questions and essentially I want to make sure each user can only have one response to a single question. How do I do that?
Currently my Response collection has Many-To-One relation with Questions since Question can have many responses and it has same relationship with Users since Users can have many responses, but they can only have a single response per question. I am not sure how to achieve it in Strapi Backend and currently rely on simply managing this in front-end (next js app).
I would appreciate if someone could advise.