stubs

When to use Meteor.methods and utilizing stubs

依然范特西╮ 提交于 2019-11-28 15:59:37
Using Meteor, I'm attempting to understand when to use server-side Meteor.methods() while still retaining instant UI updates. From Andrew Scala's introductory tutorial , he claims that Meteor.methods() should be used when you want to update and modify your database documents: The idea is that you define all the functions on the server that do dangerous stuff like modify and update data, and then let the client call those functions and get return values like regular functions. The client never sees the implementation and doesn’t personally modify the data. The server does all the work. And

When to use Meteor.methods and utilizing stubs

跟風遠走 提交于 2019-11-27 09:29:14
问题 Using Meteor, I'm attempting to understand when to use server-side Meteor.methods() while still retaining instant UI updates. From Andrew Scala's introductory tutorial, he claims that Meteor.methods() should be used when you want to update and modify your database documents: The idea is that you define all the functions on the server that do dangerous stuff like modify and update data, and then let the client call those functions and get return values like regular functions. The client never