Untitled
unknown
plain_text
2 years ago
498 B
6
Indexable
db.getCollection("massive-data").aggregate([
{
$match: {
friends: {$exists: true, $ne: []}
}
} ,
{
$unwind: "$friends"
} ,
{
$match: {
"friends.name" = /^W/
}
},
{
$group: {
_id: "friends.name"
}
}
])
error: clone(t={}){const r=t.loc||{};return e({loc:new Position("line"in r?r.line:this.loc.line,"column"in r?r.column:...<omitted>...)} could not be cloned.
Editor is loading...
Leave a Comment