mongo_demo_notes.docx - Admin mongo-help mongo-port 29000-...

  • No School
  • AA 1
  • 6

This preview shows page 1 - 3 out of 6 pages.

Admin: mongo --help mongo --port 29000 --authenticationDatabase demo -u demo -p dem0 --norc demo mongo --norc --port 29000 use demo db.auth("demo","dem0") command line recall help cls db db.stats() show users show roles show collections db.eventsDev.stats() db.eventsDev.count() db.eventsDev.find().help() db.creditMonitoringRequest.find db.cre ... db.system.indexes.find() db.eventsDev.getIndexes()
Image of page 1

Subscribe to view the full document.

Find: The next diagram shows the same query in SQL: db.creditMonitoringRequest.find() db.creditMonitoringRequest.find().count() db.creditMonitoringRequest.find().limit(2) db.creditMonitoringRequest.findOne() db.creditMonitoringRequest.find({customerRefNumber:"1122334455"}) db.creditMonitoringRequest.find({customerRefNumber:"1122334455"}).count() db.creditMonitoringRequest.find({customerRefNumber:"1122334455"}, {"_id":0,"enrollmentId":1}) db.creditMonitoringRequest.find({customerRefNumber:"1122334455"}, {"_id":0,"enrollmentId":1}).limit(5) db.creditMonitoringRequest.find({customerRefNumber:"1122334455"}, {"_id":0,"enrollmentId":1,"request":1}) db.creditMonitoringRequest.find({"_id":ObjectId("54c7f31dfd3ea7343c1107c6")})
Image of page 2
Image of page 3
  • Fall '19
  • Following, 620$, 185211, 1122334455

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes