MongoDB Playground β

Changelog | Support

Aggregation Pipeline
2 {"$match": {"price": {"$gte": 999}}}
[
  {
    "_id": ObjectId("000000000000000000000001"),
    "name": "Launch",
    "price": 999,
    "users": 2,
    "face_to_face": 4
  },
  {
    "_id": ObjectId("000000000000000000000002"),
    "name": "Scale",
    "price": 1499,
    "users": 3,
    "face_to_face": 8
  }
]
2 {"$sort": {"price": -1}}
[
  {
    "_id": ObjectId("000000000000000000000002"),
    "name": "Scale",
    "price": 1499,
    "users": 3,
    "face_to_face": 8
  },
  {
    "_id": ObjectId("000000000000000000000001"),
    "name": "Launch",
    "price": 999,
    "users": 2,
    "face_to_face": 4
  }
]
Collection