Skip to content

Commit 2428ebd

Browse files
committed
docs: clean up raise on error section
1 parent 925040e commit 2428ebd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/core/event_handler/appsync.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ stateDiagram-v2
430430

431431
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.
432432

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.
434434

435435
!!! note "This does not resolve the N+1 problem, but shifts it to the Lambda runtime."
436436

@@ -455,8 +455,6 @@ In this mode, we will:
455455

456456
##### Raise on error
457457

458-
!!! todo "Explanation about hard failure"
459-
460458
```mermaid
461459
stateDiagram-v2
462460
direction LR
@@ -507,6 +505,10 @@ stateDiagram-v2
507505

508506
<em><center>Batch resolvers: reducing Lambda invokes but fetching data N times (similar to single resolver).</center></em>
509507

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.
511+
510512
=== "getting_started_with_batch_resolver_handling_error.py"
511513
```python hl_lines="3 7 17"
512514
--8<-- "examples/event_handler_graphql/src/getting_started_with_batch_resolver_handling_error.py"

0 commit comments

Comments
 (0)