Replace attributes of a document in publish function

后端 未结 2 2063
清酒与你
清酒与你 2021-01-16 02:17

I\'m using meteor and I have a question about the publish function (server side)

Meteor.publish(\'users\', function () { .... }

I\'m sendin

2条回答
  •  花落未央
    2021-01-16 02:44

    Your code looks good but you're forgetting the .fetch() method on your task request. It should be var tasks = Tasks.find().fetch();

提交回复
热议问题