You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Storing DBRef as Embedded Document for Easy Use In Aggregation Framework or Extension point for Serialization and Deserialization of DBRef [DATAMONGO-1878]
#2780
Ankur Pathak opened DATAMONGO-1878 and commented
User
will be stored in MongoDb like:But if we try to use
DBRef
in aggreagation framework of MongoDb like below we will get error:Their is a ugly way to use them in aggregation framework by converting them to array and then into object something like this:
Check this url for reference and more detail: SERVER-14466
It will be great if we have some different or pluggable way for serialiazation and deserialization of
DBRef
s. Something like this:User will be stored in MongoDb like:
Now I can easily use use DBref in aggregation frmaework like this:
Storing dbref like this will make them easily useable in aggregation framework
and for left joins in aggreagation framework($lookup).
Reference URL: https://jira.mongodb.org/browse/SERVER-14466
The text was updated successfully, but these errors were encountered: