Skip to content

Instantly share code, notes, and snippets.

@alexwenzel
Last active January 31, 2017 10:37
Show Gist options
  • Select an option

  • Save alexwenzel/4367f93b23f3f25146a48efca37d6759 to your computer and use it in GitHub Desktop.

Select an option

Save alexwenzel/4367f93b23f3f25146a48efca37d6759 to your computer and use it in GitHub Desktop.
Description of gist
use reactor_development;
db.vendors.find({ "products._id": ObjectId("583bec83663c8419c71c4c41") }).limit(1);
db.ratings.find({ "vendor": ObjectId("583bec83663c8419c71c4c40"), "ratingStatus": "approved", "rating": { "$gte": 4 }, "ratingTagType": "Operation" }).limit(3).sort({ "ratingDate": -1 });
db.ratings.find({ "vendor": ObjectId("583bec83663c8419c71c4c40"), "ratingStatus": "approved", "_id": { "$nin": [ ObjectId("58494e03663c84613b130c41"), ObjectId("584d8eca663c843f86796434") ] } });
db.ratings.find({ "vendor": ObjectId("583bec83663c8419c71c4c40"), "ratingStatus": "approved", "_id": { "$nin": [ ObjectId("58494e03663c84613b130c41"), ObjectId("584d8eca663c843f86796434") ] } }).limit(3).skip(0).sort({ "ratingDate": -1 });
db.associations.find({ "_id": { "$in": [ ObjectId("5832c0aa663c8410e46007b3") ] } }).sort([ ]);
db.clinics.find({ "_id": { "$in": [ ObjectId("578f4c7c34690b3f3353ecd6") ] } }).sort([ ]);
db.implant.find({ "_id": { "$in": [ ObjectId("578f7aac34690b033f53ecd6"), ObjectId("57b1889a34690bd37972c6d3") ] } }).sort([ ]);
db.operation_methods.find({ "_id": { "$in": [ ObjectId("578f4eae34690b203353ecd6"), ObjectId("578f4ecb34690b293353ecd6"), ObjectId("578f4ee334690b203353ecd7") ] } }).sort([ ]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment