I have below collection and embedded documents And ContactDetails.java looks like below: StateDetails look like below: And AddressDetails loo ...
I have below collection and embedded documents And ContactDetails.java looks like below: StateDetails look like below: And AddressDetails loo ...
I have a User model on a Mongo collection that looks like this: User.class I need to get a list of OrganizationDTO to send as a response to the fr ...
I'm get this error while setting up a spring boot connecting to multiple mongo database (so custom mongoTemplate config). I'm using SpelExpression in ...
I have a springdata mongodb aggregation where I use This works fine, but how can I do case insensitive search for the searchString. There is no opt ...
I have a small standard Spring Boot microservice which is Spring Data REST for a single Mongo DB collection. The document contains the UUID field. The ...
The below query i want to add allowDiskUse true. I am able to add allowDiskUsage to aggregation query but not able to find a solution for find method ...
I am trying to remove an element from a list inside a document using the index as suggested here However, I am having problems while trying to conv ...
I am currently using "spring-boot-starter-data-mongodb" for persisting documents to a collection in mongodb. The document contains a List with nested ...
I have the below user collection How can i get only the _id attribute with mongodb to get the list of id With jpa the query is like below ...
I have the following JSON object which I would like to convert to a Criteria object so that I can use in Aggregation.match() query. { "_filter": { ...
I want to create an aggregation Query using spring data mongodb. My collection data structure is: The MongoDb Query that I want to translate to ja ...
I have a document which has a field that I want to delete given a list of ids. Here is one of the objects in the collection named products: Given a li ...
I'm trying to query MongoDB to return a single Answer object contained within a QuestionDocument object. I am using Spring, MongoRepository, and JDK ...
I'm trying to write a Java code for below MongoDB command using MongoTemplate and Criteria and Trim function on the field value in Mongo collection ...
I have a DAOImpl with an override function. I'm trying to use an aggregation to first filter then match then to project. public Map<Long, Inte ...
I have some entities like that: I need to upsert that document in MongoDB, that means: if there is no documents with id == 1, then save a new d ...
I am trying to create a spring boot app jar file which I need to use in another spring boot app. spring boot app1 is doing some DB operation. I want t ...
We're currently using spring data mongodb reactive as part of springboot application to connect to AWS Document DB. I'm trying to enable change strea ...
I have an entity: and another class InterestArea.java as and its json as: Now I want to query data for all the Users where for each entry in ...
How to apply a relationship one this submenu entity and when I hit the post request by menu and submenu as request body. How to generate Submenu.id au ...