Replies: 1 comment
-
As written, if you populate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have a Schema that has the following structure:
So basically when I want to populate this field I am looking for a way that mongoose look at the first element of the array to detect what is the foreign key (_id) for my other model's document.
Anyone has any idea how could I achieve it?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions