Module: Mongo::Operation::Find::Builder::Legacy Private

Defined in:
build/ruby-driver-master/lib/mongo/operation/find/builder/legacy.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Builds a legacy OP_QUERY specification from options.

Since:

  • 2.0.0

Constant Summary collapse

DRIVER_MAPPINGS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Mappings from driver options to legacy server values.

Since:

  • 2.2.0

{
  comment: '$comment',
  explain: '$explain',
  hint: '$hint',
  max_scan: '$maxScan',
  max_time_ms: '$maxTimeMS',
  max_value: '$max',
  min_value: '$min',
  show_disk_loc: '$showDiskLoc',
  snapshot: '$snapshot',
  sort: '$orderby',
  return_key: '$returnKey',
}.freeze

Class Method Summary collapse

Class Method Details

.$queryObject

.$readPreferenceObject

.allow_disk_useObject

.batch_sizeObject

.collationObject

.filterObject

.flagsObject

.limitObject

.projectionObject

.readObject

.read_preferenceObject

.skipObject

.Spec cannot include :read_preference here, use :readObject

.The spec must contain symbol keys onlyObject