Meteor.apply(name, args, [options], (Boolean), [asyncCallback])
import { Meteor } from 'meteor/meteor'
Source Invoke a method passing an array of arguments.
Arguments
- name String
-
Name of method to invoke
- args Array of EJSON-able Objects
-
Method arguments
- (Boolean) , or undefined
-
options.noRetry (Client only) if true, don't send this method again on reload, simply call the callback an error with the error code 'invocation-failed'.
- asyncCallback Function
-
Optional callback; same semantics as in
Meteor.call
.
Options
- wait Boolean
-
(Client only) If true, don't send this method until all previous method calls have completed, and don't send any subsequent method calls until this one is completed.
- onResultReceived Function
-
(Client only) This callback is invoked with the error or result of the method (just like
asyncCallback
) as soon as the error or result is available. The local cache may not yet reflect the writes performed by the method.
Please login to continue.