skygear-SDK-JS icon indicating copy to clipboard operation
skygear-SDK-JS copied to clipboard

Cloud: Unnecessary wrapping lambda parameters in `args` attribute

Open cheungpat opened this issue 6 years ago • 1 comments

Currently parameters for lambda are obtained like this:

skygearCloud.op('foo', function (param, options) {
  const {
    context
  } = options;
  console.log(param['args']); // the parameters passed by SDKs
});

Since the parameters is always wrapped in args and developers are not expected to get anything outside the args dictionary, wrapping the lambda parameters in args are unnecessary.

This is a breaking change.

cheungpat avatar May 23 '18 03:05 cheungpat

Need update the guides too when update

carmenlau avatar Jul 27 '18 07:07 carmenlau