Top "Mongodb-java" questions

MongoDB is a scalable, high-performance, open source, document-oriented database.

MongoDB: $in with an ObjectId array

Just a quick question about something I've just experienced and I'm still thinking about why: mongos> db.tickets.count({ "…

mongodb mongodb-query mongodb-java morphia
POJO to org.bson.Document and Vice Versa

Is there a simple way to convert Simple POJO to org.bson.Document? I'm aware that there are ways to …

java mongodb-java
How to delete all documents in mongodb collection in java

I want to delete all documents in a collection in java. Here is my code: MongoClient client = new MongoClient("10.0.2.113" , 27017); MongoDatabase …

java mongodb mongodb-java
installing MongoDB java driver

I'm really new in Java and also MongoDB world. I would like to use MongoDB and Java. I have downloaded …

java mongodb jar mongodb-java
MongoDB update using Java 3 driver

I'm switching to the MongoDB Java driver version 3. I cannot figure out how to perform an update of a Document. …

mongodb-java
Connection to MongoDB with authentication fails

I am using a MongoDB in Version 3 and I created a database named 'logMonitor' and created a user like: { "_id" : "…

java mongodb mongodb-java
converting Document objects in MongoDB 3 to POJOS

I'm saving an object with a java.util.Date field into a MongoDB 3.2 instance. ObjectMapper mapper = new ObjectMapper(); String json = …

java json mongodb mongodb-java
how to call count operation after find with mongodb java driver

I am using MongoDB 3.0. suppose there is a set of documents named photos, its structure is {"_id" : 1, photographer: "jack"} with …

mongodb mongodb-java
Java MongoDB getting value for sub document

I am trying to get the value of a key from a sub-document and I can't seem to figure out …

java mongodb mongodb-java
Authentication with Spring Security + Spring data + MongoDB

I want to use Spring security with MongoDB (using Spring data) and retrieve the users from my own database for …

java spring mongodb spring-security mongodb-java