Skip to content

Allow reading already resolved DBRef values. #4323

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

Closed
wants to merge 2 commits into from
Closed

Conversation

christophstrobl
Copy link
Member

This PR adds the ability to read (eg. by an aggregation $lookup stage) already fully resolved references between documents.
No proxy will be created for lazy loading references and we'll also skip the additional server roundtrip to load the reference by its _id.

The change only effects usage of @DBRef and does not change handling of @DocumentReference which do not have a dedicated type that would allow to distinguish between already resolved and raw references.

Since this is changing the behaviour of how we deal with DBRefs I'd keep it on main for the time being and not back port it to any of the maintenance branches.

Closes: #4312

This commit adds the ability to read (eg. by an aggregation $lookup) already fully resolved references between documents.
No proxy will be created for lazy loading references and we'll also skip the additional server roundtrip to load the reference by its id.
mp911de pushed a commit that referenced this pull request Mar 15, 2023
This commit adds the ability to read (eg. by an aggregation $lookup) already fully resolved references between documents.
No proxy will be created for lazy loading references and we'll also skip the additional server roundtrip to load the reference by its id.

Closes #4312
Original pull request: #4323
mp911de added a commit that referenced this pull request Mar 15, 2023
Extract duplicates into peek method.

See #4312
Original pull request: #4323
mp911de pushed a commit that referenced this pull request Mar 15, 2023
This commit adds the ability to read (eg. by an aggregation $lookup) already fully resolved references between documents.
No proxy will be created for lazy loading references and we'll also skip the additional server roundtrip to load the reference by its id.

Closes #4312
Original pull request: #4323
mp911de added a commit that referenced this pull request Mar 15, 2023
Extract duplicates into peek method.

See #4312
Original pull request: #4323
@mp911de mp911de added the type: bug A general bug label Mar 15, 2023
@mp911de mp911de added this to the 4.0.4 (2022.0.4) milestone Mar 15, 2023
@mp911de
Copy link
Member

mp911de commented Mar 15, 2023

That's merged, polished, and backported now.

@mp911de mp911de closed this Mar 15, 2023
@mp911de mp911de deleted the issue/4312 branch March 15, 2023 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read associations using resolved documents
2 participants