Class Mongo::Operation::Find::Result
In: lib/mongo/operation/find/result.rb
Parent: Operation::Result

Defines custom behavior of results in find command.

@since 2.2.0

Methods

Public Instance methods

Get the cursor id.

@example Get the cursor id.

  result.cursor_id

@return [ Integer ] The cursor id.

@since 2.2.0

Get the documents in the result.

@example Get the documents.

  result.documents

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

@since 2.2.0

[Validate]