- mongo test
MongoDB shell version: 1.0.0
url: test
connecting to: test
type "help" for help
> db.test.save(
Unknown macro: {a}
)
> db.test.save(
Unknown macro: {a}
)
> db.test.save(
Unknown macro: {a}
)
> db.test.save(
Unknown macro: {a}
)
> db.test.save(
Unknown macro: {a}
)
> db.test.save(
Unknown macro: {a}
)
> db.test.group(
Unknown macro: {key}
)
Thu Sep 3 13:17:19 JS Error: uncaught exception: group command failed:
{"errmsg" : "can't only handle real keys right now, not functions" , "ok" : 0}
> db.test.group({keyf: function(el){ return
{el.a.b:true}
; }, initial:
{ count: 0 }
, $reduce: function(o, i)
{ i.count += 1; }
})
Thu Sep 3 13:32:03 JS Error: SyntaxError: missing : after property id (shell):0
|