Source

fantomongo / fan / Cursor.fan

Diff from to

File fan/Cursor.fan

     res := coll.db.command(cmd)
     if (DB.cmdOk(res)) {
       c := (res["n"] as Float).toInt
-      return c.min(opts.get("limit", c)) - opts.get("skip", 0)
+      return c.min(opts.get("limit", c)).minus(opts.get("skip", 0))
     } 
     else if (res["errmsg"] == "ns missing")
       return 0