[MongoDB] How to put data from one collection on another?
Forge component by Barduino
Application Type
Reactive

My app has a collection for customer data and one for visits scheduled by a due customer, I would like to know how do I reference an item in the customer collection to be used in the collection of visits to the establishment?

Example: I have the client "Bob" registered in the Customer collection and he wants to schedule a visit to the office, the Visits collection must contain a link between the two collections where the user can search and select the client to schedulewhen the visit will take place.

How do I make this link between the two collections?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.