Class Mongo::Operation::Explain::Result
In: lib/mongo/operation/explain/result.rb
Parent: Operation::Result

Defines custom behavior of results in find command with explain.

@since 2.5.0

Methods

Public Instance methods

Get the cursor id.

@example Get the cursor id.

  result.cursor_id

@return [ 0 ] Always 0 because explain doesn‘t return a cursor.

@since 2.5.0

Get the documents in the result.

@example Get the documents.

  result.documents

@return [ Array<BSON::Document> ] The documents.

@since 2.5.0

[Validate]