Skip to content

docs(appsync_events): improve AppSync events documentation #6573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/core/event_handler/appsync_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ We use `asyncio` module to support async functions, and we ensure reliable execu

=== "working_with_async_resolvers.py"

```python hl_lines="5 6 13"
```python hl_lines="6 11 14"
--8<-- "examples/event_handler_appsync_events/src/working_with_async_resolvers.py"
```

Expand All @@ -251,7 +251,7 @@ You can access to the original Lambda event or context for additional informatio

=== "accessing_event_and_context.py"

```python hl_lines="5 6 13"
```python hl_lines="5 6 14"
--8<-- "examples/event_handler_appsync_events/src/accessing_event_and_context.py"
```

Expand Down Expand Up @@ -363,26 +363,26 @@ You can test your event handlers by passing a mocked or actual AppSync Events La

=== "getting_started_with_testing_publish.py"

```python hl_lines="5 6 13"
```python
--8<-- "examples/event_handler_appsync_events/src/getting_started_with_testing_publish.py"
```

=== "getting_started_with_testing_publish_event.json"

```python hl_lines="5 6 13"
```json
--8<-- "examples/event_handler_appsync_events/src/getting_started_with_testing_publish_event.json"
```

### Testing subscribe events

=== "getting_started_with_testing_subscribe.py"

```python hl_lines="5 6 13"
```python
--8<-- "examples/event_handler_appsync_events/src/getting_started_with_testing_subscribe.py"
```

=== "getting_started_with_testing_subscribe_event.json"

```python hl_lines="5 6 13"
```json
--8<-- "examples/event_handler_appsync_events/src/getting_started_with_testing_subscribe_event.json"
```