简体   繁体   中英

AWS AppSync: No option to add Lambda resolver

I have created an AppSync API and a lambda data source and a resolver to provide data for it. I managed to successfully run queries a couple of days ago.

I wanted to attach a second lambda resolver for a different GraphQL query. I added a new lambda as a data source, but when I click Attach in the schema next to the query, I am forwarded to the page for creating a pipeline resolver and there is no way to choose a lambda resolver instead.

Now, even when I just create a new copy of the previous AppSync API with one query and want to attach a lambda resolver to that single query, there is no way to attach a lambda resolver any more. Though it was possible earlier this week. And I can see on old APIs that they are still using lambda resolvers.

Has anything changed on AppSync recently? Or how can I attach a lambda resolver to a query, not a pipeline resolver?

When the pipeline page opens you select the "Actions" dropdown menu, and then you can choose the "Update runtime" option. Under resolver type you can then choose a Unit type resolver which you are probably looking for.

Something did change, there is a new feature where you can write resolvers using JavaScript and i guess they've put a PIPELINE resolver as the default one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM