| Module | Mongo::Collection::View::Builder::Flags |
| In: |
lib/mongo/collection/view/builder/flags.rb
|
Provides behavior for mapping flags.
@since 2.2.0
| MAPPINGS | = | { :allow_partial_results => [ :partial ], :oplog_replay => [ :oplog_replay ], :no_cursor_timeout => [ :no_cursor_timeout ], :tailable => [ :tailable_cursor ], :tailable_await => [ :await_data, :tailable_cursor], :await_data => [ :await_data ], :exhaust => [ :exhaust ] |
Options to cursor flags mapping.
@since 2.2.0 |
Maps an array of flags from the provided options.
@example Map the flags.
Flags.map_flags(options)
@param [ Hash, BSON::Document ] options The options.
@return [ Array<Symbol> ] The flags.
@since 2.2.0