Skip to content

Commit a41f5f8

Browse files
authored
MONGOID-5233 Add Feature Flag: Respect aliased fields in pluck/distinct by having Document.database_field_name recursively consider embedded docs (#5144)
* MONGOID-5233 add feature flag and testing * MONGOID-5233 add docs for new option * MONGOID-5233 fix aliased associations * MONGOID-5233 uses dots instead of ::
1 parent 754b30b commit a41f5f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/reference/configuration.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ for details on driver options.
266266
# Raise an exception when a field is redefined. (default: false)
267267
duplicate_fields_exception: false
268268

269+
# In Mongoid 7.3.3 and earlier, the pluck and distinct operations did
270+
# not respect aliased fields for embedded documents. Turning on this
271+
# flag changes those functions to recognize those aliases.
272+
# (default: false)
273+
fix_embedded_alias_pluck_distinct: false
274+
269275
# Include the root model name in json serialization. (default: false)
270276
include_root_in_json: false
271277

0 commit comments

Comments
 (0)