我有一个看起来像这样的 mongoDB 集合:
[{
"_id": 1,
"name": "John Doe",
"company": "Acme",
"email": "john.doe@acme.com",
"matches": [171844, 169729, 173168, 174310, 168752, 174972, 172959, 169546]
}, {
"_id": 2,
"name": "Bruce Wayne",
"company": "Wayne Enterprises",
"email": "bruce@wayne.com",
"matches": [171844, 232333, 233312, 123456]
}, {
"_id": 3,
"name": "Tony Stark",
"company": "Stark Industries",
"email": "tony@stark.com",
"matches": [173844, 155729, 133168, 199310, 132752, 139972]
}, {
"_id": 4,
"name": "Clark Kent",
"company": "Daily Planet",
"email": "clark.kent@planet.com",
"matches": [169729, 174310, 168752]
}, {
"_id": 5,
"name": "Lois …
Run Code Online (Sandbox Code Playgroud) mongodb ×1