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

Appsync: Support in-line access of properties on the result of a service call #14

Closed
sam-goodwin opened this issue Feb 28, 2022 · 2 comments
Assignees
Labels

Comments

@sam-goodwin
Copy link
Collaborator

Support the following access pattern:

return table.get(..).property

Currently, this mistakenly renders a Velocity Template where the RequestMappingTemplate ends with:

$util.toJson($request).property

It should actually translate to an expression the ResponseMappingTemplate:

#set($context.stash.return__val = $context.result.property)
@sam-goodwin sam-goodwin changed the title Support in-line access of properties on the result of a service call Appsync: Support in-line access of properties on the result of a service call May 28, 2022
@sam-goodwin
Copy link
Collaborator Author

@thantos I think #280 solved this one? Can we close?

@thantos
Copy link
Collaborator

thantos commented Jun 24, 2022

Yep!

@thantos thantos closed this as completed Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants