mongodb - How can one "join" a DBRef -
somehow must possbile generate result when dbreferences resolved , value of referenced object given whit original object.
example: first object has reference
{ "_id" : objectid("53bd526a5894ca07e60ca414"), "name": "the name" "labelnames" : { "de" : { "$ref" : "namelist", "$id" : objectid("53bd526a5894ca07e60ca41c") } } }
second objects stores value
{ "_id" : objectid("53bd526a5894ca07e60ca41c"), "lang" : "de", "labelnamemap" : { "9d96cd10-d27f-4579-9f6e-9fd8d9f9c683" : { "value" : "the value" } } }
the result should be: {name: "the name", value: "the value} sql join, how ist done in mongodb?
mongodb dbref
No comments:
Post a Comment