Top "Mongo-java" questions

How do I update fields of documents in mongo db using the java driver?

References: http://www.mongodb.org/display/DOCS/Java+Tutorial Still pretty new to mongo db but I'm trying to update …

java mongodb grails groovy mongo-java
(MongoDB Java) $push into array

I'm using mongo 2.2.3 and the java driver. My dilemma, I have to $push a field and value into an array, …

java mongodb mongo-java nosql-aggregation jongo
mongodb issue in java with limit and sort

Collection:progs { "_id" : "ABC", "defaultDirectory" : "abc", "defaultRecvDirectory" : "abc" } { "_id" : "RAS", "defaultRecvDirectory" : "recv/ras" } { "_id" : "SND", "defaultSendDirectory" : "send/snd" } In the …

mongodb mongo-java
$push and $set in same MongoDB update

I'm trying to use MongoDB's Java driver to make two updates ($set and $push) to a record in the same …

java mongodb mongo-java
Executing Mongo like Query (JSON)through Java

I was wondering if there is a way to execute mongo like query directly through Java i.e. we give …

java json mongodb mongo-java
Mongo ISODate query in Java

I have a mongo query to be executed : query = { "dateField" : { "$gte" : ISODate('2011-11-10T07:45:32.962Z') } } When I do …

java mongodb mongo-java
Retrieve sub-document in array as DBObject(s)

I'm very new to MongoDB, and I'm using it along with the Java driver. I have this document structure: { "_id" : …

java mongodb mongo-java
how to check from a driver, if mongoDB server is running

I wonder, if there is a way to check if mongoDB server is running from java driver for mongoDB? According …

java mongodb mongo-java
Mongo Database save data from Map

I have the below code which works: if (aDBCursor.hasNext()) { DBObject aDbObject = aDBCursor.next(); aDbObject.put("title", "Test Title"); ArrayList&…

java mongodb map mongo-java
Mongo opens too many connections

I am trying to write a lot of data to MongoDB, in a Java loop. I am getting errors based …

java mongodb connection mongo-java