I wonder what I am doing wrong.
I use Sailsv0.10 and mongo2.6.0 and want to update an array field (using $push) in a collection via native.
My model:
if you use sailsjs then:
ObjectID = require('sails-mongo/node_modules/mongodb').ObjectID; var o_id = new ObjectID(req.param('id')); console.log(o_id );
:)
rhernandez@itemsoft.mx