Module: Mongo::Operation::Idable

Included in:
Mongo::Operation::Insert::Command, Mongo::Operation::Insert::Legacy, Mongo::Operation::Insert::OpMsg
Defined in:
lib/mongo/operation/shared/idable.rb

Overview

Shared behavior of operations that require its documents to each have an id.

Since:

  • 2.5.2

Instance Method Summary collapse

Instance Method Details

#documentsObject

Since:

  • 2.5.2



23
24
25
# File 'lib/mongo/operation/shared/idable.rb', line 23

def documents
  @documents ||= ensure_ids(super)
end