so it sounds like you're trying to do a join, which mongo does not support. what it does support is embedding. so, based on what you're trying to do, you could embed a list of cars that a person owns... for example:
{
id: (whatever),
username: phil,
cars: [
{make: honda, model: civic, mileage: 44000},
{make: ford, model: focus, mileage: 56000}
]
}
or, you could link to a list of IDs in your car collection:
{
id: (whatever),
username: phil,
cars: [
123,
456
]
}
however this is less efficient, since you'll have to do more finds to get each car's info-- which is why embedding rocks!
This is described in detail here: MongoDB relationships: embed or reference?