You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide additional details e.g. code snippets. Be sure to remove any sensitive data.
I've been able to extend amplify generated VTL resolvers, however, how would I go about assigning their "data source"?
In my use case, my vtl resolver is doing a batch write and returning a bunch of IDs, I'm then creating a postUpdate resolver that takes one of those IDs and does a GetItem with it. Up until now, I've had to manually go through the appsync UI to accomplish this each time I push to a new environment and it would be great to have way to do that in the code.
The text was updated successfully, but these errors were encountered:
Hey @gxxcastillo, thank you for reaching out. This workflow is currently not supported. The feature is currently being tracked here: #69. Please feel free in subscribing to the issue for any further updates.
The solution proposed here aws-amplify/amplify-cli#9623 (comment), which involves using override.ts to manually set the value of models.{ModelName}.appsyncFunctions.{ResolverName}.dataSourceName solved this for me.
Which Category is your question related to?
API
Amplify CLI Version
10.3.0
What AWS Services are you utilizing?
Appsync
Provide additional details e.g. code snippets. Be sure to remove any sensitive data.
I've been able to extend amplify generated VTL resolvers, however, how would I go about assigning their "data source"?
In my use case, my vtl resolver is doing a batch write and returning a bunch of IDs, I'm then creating a postUpdate resolver that takes one of those IDs and does a GetItem with it. Up until now, I've had to manually go through the appsync UI to accomplish this each time I push to a new environment and it would be great to have way to do that in the code.
The text was updated successfully, but these errors were encountered: