Why is the whole object not being saved in mongodb using seneca-mongo-store? -
i using seneca-mongo-store save entities backend mongodb. here code using save
function addobject(object){ connecttomongo('stupiddb') seneca.ready(function(){ var collection = seneca.make$('install') console.log("entering object") console.log(object) collection.save$(object, function(err, reply){ if( err ) console.log(err) else console.log("reply : " + reply) closeconnection() }) }) }
the result of execution of code
$ node mongoconnect.js 2016-08-08t12:01:25.470z 912dfpdw7ytw/1470657685436/29552/- info hello seneca/0.7.2/912dfpdw7ytw/1470657685436/29552/- entering object { date: 1470657685818, product: 'mcs', release: '16.2.1', 'session id in log files': { '/tmp': 'json object', '/u01/app': 'json object' }, 'cryptographic names check': { '/tmp': 'json object', '/u01/app': 'json object' } } reply : $-/-/install;id=1p2kfa;{date:1470657685818,product:mcs,release:16.2.1,session id in log files:{/tmp:json object,/u01/app:json object}, seneca database connection closed!
the object being passed part of being stored. there length restriction on in secena plugin? there setting can change save large json objects? or there error in way of using it? per mongodb specifications document can of 16 mb size.
Comments
Post a Comment