Method: Mongo::Operation::Result#operation_time

Defined in:
lib/mongo/operation/result.rb

#operation_timeObject | nil

Get the operation time reported in the server response.

Examples:

Get the operation time.

result.operation_time

Returns:

  • (Object | nil)

    The operation time value.

Since:

  • 2.5.0



420
421
422
# File 'lib/mongo/operation/result.rb', line 420

def operation_time
  first_document && first_document[OPERATION_TIME]
end