python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Retrive a object of parent class into child class in spring boot application
I am building REST API using spring boot application. I have connected application to Mongodb database. I have created a database named "Employee" and collection as "Employee" itse...
Vishal
Votes: 0
Answers: 1
sorted in desending order using mongoRepository
I am a beginner on spring boot and mongodb I want to use @query to display the files in descending order can you give me an idea?
public class file{
private String id;
private String name;
...
dev
Votes: 0
Answers: 2
How to add "allowDiskUse" in @Aggregation annotation in repository in Spring Boot?
I have an aggregation written in a MyRepository.kt file which is being called from MongoDataRetriever.kt file in the backend.
MyRepository.kt file:
import org.springframework.data.mongodb.repository.A...

Light Yagami
Votes: 0
Answers: 1
MongoDB JSON based query methods
public interface SomethingRepository extends MongoRepository<Something, String> {
@Query("{ '_id' : ?0 }")
Something findByNestedObjectId(String _id);
}
I am using the Spring...
Koala
Votes: 0
Answers: 0