Home > database >  How to use ordinary springboot query array, a great god give advice or comments!!!!!!!!!!
How to use ordinary springboot query array, a great god give advice or comments!!!!!!!!!!

Time:10-17

Currently found on the net of all is the query object array of articles, but the pure array seems not found, I use the
 c=the Criteria of the Criteria. The where (" XXX "), is (" XXXXX "); 

Data have been this way for 0.
 {
{
"_id" : ObjectId (" 5 dc4e06fb92eab660805bd51 "),
"MapDatas" : "5 dc4dd1db92eab16f805b518", "five dc4dd1cb92eab16f805b517", "five dc4e06fb92eab660805bd54"]
}
}


Such arrays, by mapDatas inside a query to the data of a value,

Hope great god know!!!!!!

CodePudding user response:

It is good to use aggregate match directly
Db. Collection. Aggregate ([{
$match: {
"MapDatas" : "what do you want to match the"
}
}])
Springboot inside one is with spring data mongo, is a native of directing a drive, see which one you use
  • Related