Top "Mongotemplate" questions

Part of Spring Data project which provides consistent Spring-based programming model for new datastores while retaining store-specific features and capabilities.

Find elements in a collection where an element has a field which is a list and a given value must belong to the list

I would like to query the objects in my collection such as a given value must belong to the values …

spring mongodb criteria mongotemplate
MongoTemplate : group by on multiple fields with condition clause

Earlier I had below mentioned aggregation pipeline. db.EXCEPTIONS.aggregate( [{ $match : { $and : [ {workflow_stage_current_assignee : {$ne:null}}, {CreatedDate:{$gt:…

mongodb mongotemplate
While saving a collection MongoDB is creating Index name which is too long and exceeds 127 bytes limit. How to solve this. can i disable indexing?

com.mongodb.CommandFailureException: { "serverUsed" : "localhost:27017" , "createdCollectionAutomatically" : true , "numIndexesBefore" : 1 , "ok" : 0.0 , "errmsg" : "namespace name generated from index name \"NDS.ABCD_pre_import.$…

mongodb spring-data-mongodb mongotemplate
How to execute mongo query from spring's mongo template?

I am trying to execute queries like "db.post.find().pretty()" from executeCommand of mongoTemplete of spring framework. But I …

java spring mongodb mongotemplate
Spring MongoTemplate - Mapping aggregation result to collections (e.g. List and Map)

aggregate method of MongoTemplate returns AggregationResults<T>, where T being the class that corresponds to mongo collection. Sometimes, …

java spring mongodb spring-mvc mongotemplate