Spring MongoDB Data elemMatch Simple
问题 { _id: 1, results: [ "tokyo", "japan" ] } { _id: 2, results: [ "sydney", "australia" ] } db.scores.find( { results: { $elemMatch: { $regex: *some regex* } } } ) How do you convert this simple elemMatch example using spring mongodb data Query Criteria? If the array contains object I can do it this way Criteria criteria = Criteria.where("results"). elemMatch( Criteria.where("field").is("tokyo") ); But in my question, I dont have the "field" Update: I thought the Veeram's answer was going to