Joining Data Examples
This chapter offers guidance on joining together data from two collections. Contrary to what you may have heard, MongoDB is quite capable of performing these joins. The method of data manipulation will differ depending on whether you're executing a one-to-one or one-to-many join. You will explore solutions for both scenarios.
This chapter will cover the following:
- Implementing one-to-one joins
- Implementing one-to-many joins
- Dealing with multiple fields on each side of the join