MongoDb

Jswalker used Native mongodb wrapper to achieve metal performance

Configuration


database:{
    mongo_pool:{
      flag:true,
      dbs:[
        {name:"test",host:"127.0.0.1",port:27017,user:"root",password:"password"},
        {name:"test1",host:"127.0.0.1",port:27017,user:"root",password:"password"}
      ]
    },
    mysql_pool:{
      flag:true,
      dbs:[
        {prefix:"jswalker",name:"jswalker",host:"127.0.0.1",user:"root",password:"jas.1992"},
        {prefix:"test",name:"test",host:"127.0.0.1",user:"root",password:"password"},
      ]
    }
 }
              
All mongodb database create with authentication rule,Only Secure connection handle in mongoDb jswalker

Jswalker is held in private repository so it is only available to specific user or group.

 $ Jswalker is no longer serve as open-source framework : 
repository moved into private account 

How to work with mongodb


          /*Model(hello.model)*/
module.exports.hello=function(op,output){
      var system_op = op;   // this is very convenient  if you want op within  function as standard variable
      var mongo = system_op.mongo; // get mongo object
      

      
};
          
All jswalker mongo query handle via mongodb(Native). Refer This documentation for mongoDb query