Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经被说服使用 Reactive Extensions for JavaScript,所以我尝试将它与 Mongoose 一起使用,如下所示:
var subscription = Rx.Node.fromStream(Meeting.find().stream()) .subscribe(function () { console.log(arguments); }); subscription.dispose();
但什么也没有发生。我可能做错了什么?
Found the solution:
Rx.Node.fromStream(Meeting.find().stream()).subscribe(function (data) { console.log(util.inspect(data, false, null)); });