-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: 2.4.3
-
Component/s: Public API
-
None
-
Environment:ruby: 2.4.1p111
os: Windows 7
-
Minor Change
When i try to iterate over collection's indexes, i got an warning message
in `limited?': Mongo::Cursor#limit at C:/Work/Progs/Ruby24-x64/lib/ruby/2.4.0/forwardable.rb:157 forwarding to private method Mongo::Index::View#limit
Example
require 'rubygems' require 'mongo' Mongo::Logger.logger.level = ::Logger::INFO @sourceMongo= Mongo::Client.new(['10.34.0.4'], database: :some_db) @sourceCollection= @sourceMongo[:some_coll] @indexes= @sourceCollection.indexes @indexes.each do |index| puts index end