add spaces
This commit is contained in:
52
src/main/resources/persprof.json
Normal file
52
src/main/resources/persprof.json
Normal file
@@ -0,0 +1,52 @@
|
||||
[
|
||||
{
|
||||
"$lookup": {
|
||||
"from": "categories",
|
||||
"localField": "category.$id",
|
||||
"foreignField": "_id",
|
||||
"as": "categoryDetails"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$lookup": {
|
||||
"from": "spaces",
|
||||
"localField": "space.$id",
|
||||
"foreignField": "_id",
|
||||
"as": "spaceDetails"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$lookup": {
|
||||
"from": "users",
|
||||
"localField": "user.$id",
|
||||
"foreignField": "_id",
|
||||
"as": "userDetails"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$match": {
|
||||
"$and": [
|
||||
{
|
||||
"spaceDetails._id": {
|
||||
"$oid": "67af52e8b0aa7b0f7f74b491"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type.code": "INSTANT"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"$sort": {
|
||||
"date": -1,
|
||||
"createdAt": -1
|
||||
}
|
||||
},
|
||||
{
|
||||
"$skip": 0
|
||||
},
|
||||
{
|
||||
"$limit": 10
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user