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
Copy file name to clipboardExpand all lines: docs/core/event_handler/appsync.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -430,7 +430,7 @@ stateDiagram-v2
430
430
431
431
In rare scenarios, you might want to process each item individually, trading ease of use for increased latency as you handle one batch item at a time.
432
432
433
-
You can toggle `aggregate` parameter in `@batch_resolver`parameter for your resolver function to be called N times.
433
+
You can toggle `aggregate` parameter in `@batch_resolver`decorator for your resolver function to be called N times.
434
434
435
435
!!! note "This does not resolve the N+1 problem, but shifts it to the Lambda runtime."
436
436
@@ -455,8 +455,6 @@ In this mode, we will:
455
455
456
456
##### Raise on error
457
457
458
-
!!! todo "Explanation about hard failure"
459
-
460
458
```mermaid
461
459
stateDiagram-v2
462
460
direction LR
@@ -507,6 +505,10 @@ stateDiagram-v2
507
505
508
506
<em><center>Batch resolvers: reducing Lambda invokes but fetching data N times (similar to single resolver).</center></em>
509
507
508
+
You can toggle `raise_on_error` parameter in `@batch_resolver` to propagate any exception instead of gracefully returning `None` for a given batch item.
509
+
510
+
This is useful when you want to stop processing immediately in the event of an unhandled or unrecoverable exception.
0 commit comments