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.Solution:Jump to solution
Okay, I probably found a solution.
It seems that restarting Nest.js application helped....
1 Reply
Solution
Okay, I probably found a solution.
It seems that restarting Nest.js application helped.