Java & findAndModify

80 views
Skip to first unread message

Jason

unread,
May 11, 2012, 8:28:44 PM5/11/12
to mongodb-user
I am trying to execute complex findAndModify commands against a
MongoDB using Java. I would like to execute the method via the
db.command() method, however the error comes back as saying the
commands I write don't exist. How do you execute raw, command-line-
like queries in Java?

Randolph Tan

unread,
May 15, 2012, 10:52:53 AM5/15/12
to mongod...@googlegroups.com
Can you post your code and the error? Some of the commands are case sensitive depending on where you sent it to (mongos or mongod).
Reply all
Reply to author
Forward
0 new messages