Module: Mongo::Operation::Find::Builder::Command Private

Defined in:
build/ruby-driver-master/lib/mongo/operation/find/builder/command.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 find command specification from options.

Since:

  • 2.0.0

Constant Summary collapse

OPTION_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.

The mappings from ruby options to the find command.

Since:

  • 2.0.0

BSON::Document.new(
  allow_disk_use: 'allowDiskUse',
  allow_partial_results: 'allowPartialResults',
  await_data: 'awaitData',
  batch_size: 'batchSize',
  collation: 'collation',
  comment: 'comment',
  filter: 'filter',
  hint: 'hint',
  let: 'let',
  limit: 'limit',
  max_scan: 'maxScan',
  max_time_ms: 'maxTimeMS',
  max_value: 'max',
  min_value: 'min',
  no_cursor_timeout: 'noCursorTimeout',
  oplog_replay: 'oplogReplay',
  projection: 'projection',
  read_concern: 'readConcern',
  return_key: 'returnKey',
  show_disk_loc: 'showRecordId',
  single_batch: 'singleBatch',
  skip: 'skip',
  snapshot: 'snapshot',
  sort: 'sort',
  tailable: 'tailable',
  tailable_cursor: 'tailable',
).freeze

Class Method Summary collapse

Class Method Details

.batchSizeObject

.collationObject

.limitObject

.readConcernObject

.singleBatchObject