MongoDB relationships exercise.
Ready — edit the code above and click Run.
// Embed vs reference: choose based on read/write patterns
Try solving on your own first, then reveal the official answer.
MongoDB shell syntax for interviews.