Top "Spring-mongo" questions

A spring-data connector that enables integration with MongoDB document database.

Spring Mongo DB @DBREF

I am having trouble writing code that would allow get a user and claim details in a straightforward way. This …

java mongodb spring-mongo spring-mongodb
Mongodb $lookup in Spring data mongo

I'm a new Mongodb and I have a problem with $lookup with java spring. I would like to use this …

java mongodb spring-mongo
How to run a custom mongodb query in spring-boot

I have a spring-boot application and I am trying to run this below query using it. db.userActivity.findAndModify( { query: { …

java spring mongodb spring-boot spring-mongo
Spring mongodb get ID of inserted item after Save

I am working with Spring MongoDb. I create various entities using insert method: http://docs.spring.io/spring-data/mongodb/docs/…

mongodb spring-mongo
Spring -Mongodb storing/retrieving enums as int not string

My enums are stored as int in mongodb (from C# app). Now in Java, when I try to retrieve them, …

spring mongodb spring-mongo
Spring boot 2.0.5.RELEASE and mongo 4.0 connection issues

I am following the Accessing Data with MongoDB tutorial on Spring web site I Installed Mongo DB server version 4 as …

java mongodb spring-boot spring-mongo
How to frame a query using @Query annotation?

Is there any way to represent below query using spring-data mongo @Query annotation. db.users.find({userName: "titogeo"}, {requests: 1, _id:0}) …

java mongodb spring-data spring-mongo
Mongo Connection Pooling(Changing the size of connection pool)

How to change the mongo connection pool size? I have seen it is 100 by default. Is there a way to …

java spring mongodb mongo-java spring-mongo
Spring mongo adding criteria to and operator dynamicaly

I am trying to create dynamic query with user input with and operation My code is I created List of …

java spring mongodb spring-mongo
MongoDB $aggregate $push multiple fields in Java Spring Data

I have a mongo aggregate group query: db.wizard.aggregate( { $group: { _id: "$title", versions: { $push: {version:"$version", author:"$author", dateAdded:"$…

java spring mongodb spring-data-mongodb spring-mongo