| Module | Mongo::Collection::View::Builder::Modifiers |
| In: |
lib/mongo/collection/view/builder/modifiers.rb
|
Provides behavior for mapping modifiers.
@since 2.2.0
| DRIVER_MAPPINGS | = | BSON::Document.new( sort: '$orderby', hint: '$hint', comment: '$comment', snapshot: '$snapshot', max_scan: '$maxScan', max_value: '$max', min_value: '$min', max_time_ms: '$maxTimeMS', return_key: '$returnKey', show_disk_loc: '$showDiskLoc', explain: '$explain' |
Mappings from driver options to legacy server values.
@since 2.2.0 |
|
| SERVER_MAPPINGS | = | BSON::Document.new(DRIVER_MAPPINGS.invert).freeze |
Mappings from server values to driver options.
@since 2.2.0 |
Transform the provided server modifiers to driver options.
@example Transform to driver options.
Modifiers.map_driver_options(modifiers)
@param [ Hash ] modifiers The modifiers.
@return [ BSON::Document ] The driver options.
@since 2.2.0