8000 Feature request: support BatchInvoke when using AppSyncResolver · Issue #1303 · aws-powertools/powertools-lambda-python · GitHub
[go: up one dir, main page]

Skip to content
Feature request: support BatchInvoke when using AppSyncResolver #1303
Closed
@cponfick

Description

@cponfick

Use case

Currently, an event is expected to be of type Dict[str,Any]. When using 'BatchInvoke' in a direct lambda resolver, the event becomes type List[Dict[str,Any]]. Hence, it is not possible to route the event to the expected resolver.

A use case is given by the official dev guide. Without the ability to use 'BatchInvoke' users will run into n + 1 problems, when using appsync-GraphQl.

Solution/User Experience

I am not 100% sure how a good solution would look like. Maybe it would be possible to use the AppSyncResolverEvent to handle one individual event, or a list of events.
Given the described use case, the events should usually only diverge in the source.

Alternative solutions

No response

Acknowledgment

Metadata

Metadata

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0