Sorgu Örnekleri:
db.orders.find({ "user_id": ObjectId("60ad0cedf8d2e30d8c8b4567") })
db.products.find().sort({ "sales": -1 }).limit(10)
Sorgu Örnekleri:
MATCH (u:User)-[:FRIEND]->(f:User)
WHERE u.id = "60ad0cedf8d2e30d8c8b4567"
RETURN f.name
db.posts.aggregate([
{ $match: { "_id": ObjectId("60ad0cedf8d2e30d8c8b456a") } },
{ $lookup: { from: "comments", localField: "_id", foreignField: "post_id", as: "comments" } },
{ $project: { "content": 1, "comments.text": 1 } }
])
Sorgu Örnekleri:
db.sensor_data.find({ "timestamp": { "$gte": ISODate("2024-04-26T00:00:00Z") } })
db.devices.find({ "user_id": ObjectId("60ad0cedf8d2e30d8c8b4567") })