back soft

مطالب مرتبط با «using variables in mysql» در back soft | نویسنده: استخدام کار

Using variables in a mongodb query function

Vote count: 0 Hi I am using Express to work with MongoDB. I am pretty new to both. I got a find function working, it looks like this: function find (current_collection, cb) { getCollection(current_collection, function (err, collection) { collection.findOne({ 'identity.sender.id': '1234abcd' }, function (err, result) { // ... some err and cb handling }); }); } I logged the result and everything looks fine. I want to this code somewhere else, so I tried to use variables in the query and tued the function into something like this: function find (current_collection, val, cb) { getCollection(current_collection, function (err, collection) { collection.findOne({ 'identity.sender.id': val }, functio...

ادامه مطلب

برچسب‌های مرتبط

using variables in sql | using variables in sed | using variables in bash | using variables in excel | using variables in batch files | using variables in powershell | using variables in html | using variables in css | using variables in mysql | using variables in oracle sql