I am able to add first degree relation to one collection to another but not able to add DBRefs if the collection has any internal structure (document).
For an example, I want to link tour_id
in suggested_place
internal structure to o_id
of collection tour
.
Please see the two image for my mongodb schema design.
To be honest, I am not very sure, it is possible or not and I have searched all over the Internet for any possibles answers. In case if there is no feature to add these kind of structure definition in mongodb, I am afraid that the junk data will remain there if the parent row is deleted.