Skip to content

Commit

Permalink
update mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
rbmonster committed Jan 12, 2023
1 parent 21bae44 commit 367cdef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/other/MONGODB.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ db.helloworld.dropIndex("username_1")

查询数组中的值
```text
db.getCollection('crm_form_answer_whole').aggregate([
db.getCollection('form_answer').aggregate([
{
$unwind:{
path:'$answers',
includeArrayIndex: 'index'
}
},{"$match":{"formAnswerId":"13990100447000021072800010001"}}
},{"$match":{"formAnswerId":"139900001"}}
,
{
$project: {
Expand Down

0 comments on commit 367cdef

Please sign in to comment.