Top "Mongo-java-driver" questions

The Java driver for MongoDB

How can I build an $or query for MongoDB using the Java driver?

I'm trying to Or some conditions in MongoDB (using the Java driver). This is what I'm doing : Pattern regex = Pattern.…

java mongodb mongodb-query mongo-java-driver
Connecting to MongoDB using jdbc driver

Purpose is to connect MongoDB remote server through JAVA: URL = "jdbc:mongo://" + serverIP + ":" + port+ "/" +databaseName; Class.forName("mongodb.jdbc.MongoDriver"); …

java mongodb jdbc mongodb-java mongo-java-driver
Change default Mongo connection pool size in spring-boot

I want to change the default size of connection pool provided by java mongodb driver which is 100 according to mongo …

java spring mongodb mongo-java-driver
Bulk Upsert with MongoDB Java 3.0 Driver

In the earlier versions of MongoDB Java drivers , to run a query and do unordered bulk upsert on the result …

java mongodb upsert mongo-java-driver
Java MongoDB save multiple documents at once

I Have a list of updated objects/documents i need save all the objects in the list at once. I …

mongodb spring-data-mongodb mongo-java mongo-java-driver mongotemplate
MongoDb BSON stores Date in UTC time

If I try to put a date field in a Document (BSON) and write it to Mongo, BSON writes it …

java mongodb date mongo-java-driver
How to check if MongoDB connection is established with Java?

In my app, MongoDB 3.2.4 runs on a custom port, I want to implement logic where my app will try to …

java mongodb exception-handling mongo-java mongo-java-driver
Mongo aggregation in java: group with multiple fields

I'm trying to perform an aggregation operation using in Java using the mongo-java-driver. I've performed some other find operations, but …

java mongodb mongo-java-driver
How to search a document and remove field from it in mongodb using java?

I have a device collection. { "_id" : "10-100-5675234", "_type" : "Device", "alias" : "new Alias name", "claimCode" : "FG755DF8N", "hardwareId" : "SERAIL02", "…

java mongodb mongodb-query mongo-java-driver
How to execute MongoDB native query (JSON) using mongo-java-driver only?

How to fire mongo native queries using java-mongo-driver only. No Spring-Data or EclipseLink or Hibernate OGM, Only using java-mongo-driver Sample …

json mongodb native mongo-java-driver