Method: Mongo::Operation::Aggregate::Result#post_batch_resume_token

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

#post_batch_resume_tokenBSON::Document | nil

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get the post batch resume token for the result

Returns:

  • (BSON::Document | nil)

    The post batch resume token

Since:

  • 2.0.0



63
64
65
# File 'lib/mongo/operation/aggregate/result.rb', line 63

def post_batch_resume_token
  cursor_document ? cursor_document['postBatchResumeToken'] : nil
end