AveTaylor
PPrisma
•Created by AveTaylor on 6/19/2024 in #help-and-questions
How to populate array in one-to-many relationship (or may be even persist)?
Hi.
I have the following example models:
Then I create my user:
Then I create my article:
createArticleDto
contains userId and thus it should connect these two models together.
Then I try to find user and populate their articles:
But it does not have nor return any article.
Please, tell me, what am I doing wrong and possible fixes of the situation?
Thanks.3 replies