Hi,
I was playing around with Mongo.ml, and when I tried to use count (to count the elements in a collection), an exception was raised and I don't understand why.
Maybe I did something wrong ?
Here is a sample session using utop:
─( 23:19:42 )─< command 2 >────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─
utop # #require "mongo";;
─( 23:19:50 )─< command 3 >────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─
utop # let m = Mongo.create_local_default "lamaurbain" "users";;
val m : Mongo.t = <abstr>
─( 23:19:57 )─< command 4 >────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─
utop # Mongo.count m;;
Exception: Not_found.
─( 23:19:58 )─< command 5 >────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─
utop #
kokoro:cumulus/src mongo lamaurbain as engil
MongoDB shell version: 2.6.1
connecting to: lamaurbain
> db.users.count()
7
>
Thanks !
Hi,
I was playing around with Mongo.ml, and when I tried to use count (to count the elements in a collection), an exception was raised and I don't understand why.
Maybe I did something wrong ?
Here is a sample session using utop:
Thanks !