Create schema problem

Hii Sir,
sir how to connect one schema to another schema

Hello Sakshi,
I have not tried this before but the process of connecting one MongoDB document to another can be done either using population:-

Youtube video:-

Or referencing unique id from one document in the second document:-


https://docs.mongodb.com/manual/applications/data-models-relationships/
Let me know if this works and revert back on this thread if you need additional help.

yes sir population method is work . I have done using population

1 Like