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

add examples for different resolveMode options. #212

Merged
merged 2 commits into from
Apr 29, 2019

Conversation

zoellner
Copy link

Related to #173 (#134)

Description of changes:
Add documentation for reolveMode options PROMISE and CALLBACK

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@zoellner
Copy link
Author

Note that this PR contains another commit since I am working against the master branch as noted in CONTRIBUTING and making the PR against the develop branch as noted in the PULL_REQUEST_TEMPLATE

@brettstack
Copy link
Collaborator

Sorry, that contributing guide is incorrect (default/standard from AWS). I'll change it to request changes are made based on develop branch.

@brettstack brettstack merged commit 23cda99 into CodeGenieApp:develop Apr 29, 2019
// i.e. errors still lead to a resolved promise
// The resolved promise has a a statusCode property that can be checked for error codes

exports.handler = async (event, context) => { return awsServerlessExpress.proxy(server, event, context, 'PROMISE') }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .proxy call should be suffixed with .promise I believe.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If your handler is't doing any more async work why would someone use this feature?

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

Successfully merging this pull request may close these issues.

4 participants