This repository has been archived by the owner. It is now read-only.

Mango::Cursor->Count doesn't work as expected #11

kthakore opened this Issue Jan 23, 2014 · 2 comments


None yet
2 participants

Mango v0.22

use Mango;

my $mango = Mango->new('mongodb://localhost:27017');

my $db = $mango->db('test');

my $coll = $db->collection('c');

$coll->insert({"f" => "a" });

my $list = $coll->find()->all();

print scalar @{$list};

print $coll->find()->count();

The count is always returning 0 no matter what;


kraih commented Jan 23, 2014

Works flawless for me.

@kraih kraih closed this Jan 23, 2014

Should count be returning 0? What am I doing wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.