Hi Mojo users,
I am trying to understand why the last statement in this code is return 0
instead of 1.
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};
> #1
>
> print $coll->find()->count();
> #0
>
>
What am I not understanding?
Thank you in advance
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.