Mern

  • Reference
    • https://www.lynda.com/Express-js-tutorials/Learning-Full-Stack-JavaScript-Development-MongoDB-Node-React/533304-2.html
  • Robo 3T
  • Mongo
    • SQL to MongoDB mapping - https://docs.mongodb.com/manual/reference/sql-comparison/
    • mongo Shell Command History - https://docs.mongodb.com/manual/reference/mongo-shell/
    • aggregation https://docs.mongodb.com/manual/aggregation/ cat ~/.dbshell
    • DB Server mongod
    • DB Client mongo db db.help() db.collection.help() https://docs.mongodb.com/manual/mongo/ use workfasttest
    • Iterate Cursor var jobs = db.getCollection(‘jobs’).find({}) jobs.toArray()[2] jobs.forEach(printjson); Object.bsonsize(db.getCollection(‘jobsubmissions’)) db.names.find({ “_id”: ObjectId(“123456”) }) ObjectId(“123456”).getTimestamp()
  • Find all files containing text “.id” (ignoring file loadTest.js) git grep “.id” | grep -v Test
Written on October 29, 2017