>
> > var sysInfo = db.collection('sysInfo');
> > var jsonObj = sysInfo.find().toArray();
>
to.Array(function(err, dataArray)){
> response.writeHead(200, {'Content-Type':
'text/plain'});
> response.end(jsonObj);
}
> I'm not sure which node mongodb module you're using, but undoubtedly an
> operation like find() will be asynchronous
>
Yes it is as with `toArray(callback)`.
_________
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/744c65d2-4e4e-4a41-81ef-e8974bd2ad10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.