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
Fix MONGOID-4952 Unable to access embedded fields in projected query results (#4843)
* Prevent 'Missing attribute' when accessing attributes of embedded docs
* add test for the missing attriubte bug
* fix type in test
* add a new test and fix small bug
* make comment clearer
* added more cases to tests
* save!
* association
* verify that projecting an association and its field is not allowed
* redo fix to be in line with what the method is supposed to do
* handle 4.2 and 4.4 separately
* reorganize tests
* handle different order of projection of association vs field
* fix 4.2 and lower servers
* add doc note
Co-authored-by: Emily Giurleo <e.m.giurleo@gmail.com>
Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
0 commit comments