123456789_123456789_123456789_123456789_123456789_

Module: Mongo::Operation::Find::Builder::Flags Private

Do not use. This module is for internal use only.
Relationships & Source Files
Defined in: lib/mongo/operation/find/builder/flags.rb

Overview

Provides behavior for converting Ruby options to wire protocol flags when sending find and related commands (e.g. explain).

Since:

  • 2.0.0

Constant Summary

  • MAPPINGS =

    ::Mongo::Options to cursor flags mapping.

    Since:

    • 2.0.0

    # File 'lib/mongo/operation/find/builder/flags.rb', line 30
    {
      :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 ],
    }.freeze