-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBRefs as Object #350
Comments
Do you want you DBRefs fetch or just to be Objects and not Strings? If we wanted to fetch, then possibly we would want to change the implementation of convertDbRef to something like this:
However, I'm not sure we always want to do this? I think we'd probably also want a flag controlling whether we fetch DBRefs. DBRefs in general aren't really recommended. The MongoDB docs state:
|
I agree with @benmccann we should keep string as default representation and maybe include a new flag to fetch the reference. Ideally DBRefs should map to parent child mapping [1] [1] - http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/parent-child-mapping.html |
i've implemented this via #525 Didn't use fetch though as its deprecated and doesn't always get you back a dbobject, working on adding a flag to toggle |
flag is in |
Hi,
I update the river to 2.0.1 but DBRef still handle as string :(
Here my MongoDb collection
Here how it's stored in ES
Could you help me?
Thank you
The text was updated successfully, but these errors were encountered: