要查詢有關meteors客戶端MongoDB的實施對象會發生什麼,我可以使用 MyModel.find();
// produces a lot of attributes, not useful
或 MyModel.find().fetch();
// returns array containing my objects from type 'MyModel', e.g.
// [
我有一個應用程序使用流量路由器及其酒吧/次機制。我也有一個集合和模板助手。該代碼是,在客戶端 Template.theCase.helpers({
theCase: function() {
var id = FlowRouter.getParam('id');
var theCase = Cases.findOne({
id: id
}