i am using laravel mongodb collection in that i have some relationship issues here is my collection of user in which user have multiple addresses and addresses is save in another collection and that ids is save in user collection
{
"_id":ObjectId("52ffc33cd85242f436000001"),
"contact": "987654321",
"dob": "01-01-1991",
"name": "Tom Benzamin",
"address_ids": [
ObjectId("52ffc4a5d85242602e000000"),
ObjectId("52ffc4a5d85242602e000001")
]
}
for getting user information and his addresses information i have to make 2 query one for user and other for addresses
can it is possible to get user info with addresses in single query by using eloquent relationship. Sorry i am new in mongodb collection.