Skip to content
Advertisement

Tag: iterator

How to get mongodb collection iterator?

I’m connecting to mongo db like this: Getting collection like this: And getting collection iterator like this: However last call shoots error: [error] Could not retrieve source count from demo_article: Authentication failed. What I’m doing wrong here? UPDATE: Here: iterator is Traversable. But then, this code is called from SourcePluginBase: and it’s not Traversable?! How can it loos that traversable

Advertisement