Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud: Unnecessary wrapping lambda parameters in args attribute #422

Open
cheungpat opened this issue May 23, 2018 · 1 comment
Open

Cloud: Unnecessary wrapping lambda parameters in args attribute #422

cheungpat opened this issue May 23, 2018 · 1 comment

Comments

@cheungpat
Copy link
Contributor

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 cheungpat changed the title Cloud: Unnecessary wrapping lamda parameters in args attribute Cloud: Unnecessary wrapping lambda parameters in args attribute May 23, 2018
@carmenlau
Copy link
Contributor

Need update the guides too when update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants