Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about mongotemplate

Read more about mongotemplate

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - mongotemplate

Get multiple RequestParam of one variable

I'm trying to build a multifunctional search method using MongoTemplate, Query and Criteria. Here is my RequestMapping for variable search: public Page<Users>getUsers( @RequestParam(...
test-img

M G

java

spring-boot

crud

mongotemplate

request-mapping

Votes: 0

Answers: 2

Latest Answer

this is how i did it: if (CollectionUtils.isNotEmpty(lastName)) { Criteria lastNameCriteria = new Criteria(); lastNameCriteria = lastNameCriteria.where("lastName").in(lastNam...
test-img

M G

I want to sort the Mongodb data based on Array size

I'm having student (String) and instructor (List of String).I want to fetch the record based on the instructor count in Descending order. instructor as below Sample: [a,b,c] -3, [e,f] -2, [g,h,i,j] ...
test-img

Ram Kumar

java

database

mongodb

spring-data

mongotemplate

Votes: 0

Answers: 2

Latest Answer

Query1 add a new field with the $size of the instructor array sort descending by that field unset that field *sort doesn't accept an expression we couldn't do it in 1 stage without adding a new fiel...
test-img

Takis

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved