Skip to content

Commit 1cbf580

Browse files
committed
docs(examples): fix highlighting due to backwards compatible typedict change
1 parent cb791a4 commit 1cbf580

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/core/event_handler/appsync.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Here's an example where we have two separate functions to resolve `getTodo` and
5858

5959
=== "getting_started_graphql_api_resolver.py"
6060

61-
```python hl_lines="7 13 23 25-26 35 37 48"
61+
```python hl_lines="14 20 30 32-33 42 44 55"
6262
--8<-- "examples/event_handler_graphql/src/getting_started_graphql_api_resolver.py"
6363
```
6464

@@ -112,7 +112,7 @@ You can nest `app.resolver()` decorator multiple times when resolving fields wit
112112

113113
=== "nested_mappings.py"
114114

115-
```python hl_lines="4 10 20-21 23 30"
115+
```python hl_lines="11 17 27-28 28 30 37"
116116
--8<-- "examples/event_handler_graphql/src/nested_mappings.py"
117117
```
118118

@@ -126,7 +126,7 @@ You can nest `app.resolver()` decorator multiple times when resolving fields wit
126126

127127
For Lambda Python3.8+ runtime, this utility supports async functions when you use in conjunction with `asyncio.run`.
128128

129-
```python hl_lines="7 14 24-25 34 36" title="Resolving GraphQL resolvers async"
129+
```python hl_lines="14 21 31-32 41 43" title="Resolving GraphQL resolvers async"
130130
--8<-- "examples/event_handler_graphql/src/async_resolvers.py"
131131
```
132132

@@ -151,13 +151,13 @@ Use the following code for `merchantInfo` and `searchMerchant` functions respect
151151

152152
=== "graphql_transformer_merchant_info.py"
153153

154-
```python hl_lines="4 6 22-23 27-28 36"
154+
```python hl_lines="11 13 29-30 34-35 43"
155155
--8<-- "examples/event_handler_graphql/src/graphql_transformer_merchant_info.py"
156156
```
157157

158158
=== "graphql_transformer_search_merchant.py"
159159

160-
```python hl_lines="4 6 21-22 36 42"
160+
```python hl_lines="11 13 28-29 43 49"
161161
--8<-- "examples/event_handler_graphql/src/graphql_transformer_search_merchant.py"
162162
```
163163

@@ -185,7 +185,7 @@ You can subclass [AppSyncResolverEvent](../../utilities/data_classes.md#appsync-
185185

186186
=== "custom_models.py.py"
187187

188-
```python hl_lines="4 7 23-25 28-29 36 43"
188+
```python hl_lines="11 14 30-32 35-36 43 50"
189189
--8<-- "examples/event_handler_graphql/src/custom_models.py"
190190
```
191191

@@ -214,7 +214,7 @@ Let's assume you have `split_operation.py` as your Lambda function entrypoint an
214214

215215
We import **Router** instead of **AppSyncResolver**; syntax wise is exactly the same.
216216

217-
```python hl_lines="4 8 18-19"
217+
```python hl_lines="11 15 25-26"
218218
--8<-- "examples/event_handler_graphql/src/split_operation_module.py"
219219
```
220220

@@ -242,7 +242,7 @@ Here's an example of how you can test your synchronous resolvers:
242242

243243
=== "assert_graphql_response_module.py"
244244

245-
```python hl_lines="10"
245+
```python hl_lines="17"
246246
--8<-- "examples/event_handler_graphql/src/assert_graphql_response_module.py"
247247
```
248248

@@ -265,7 +265,7 @@ And an example for testing asynchronous resolvers. Note that this requires the `
265265

266266
=== "assert_async_graphql_response_module.py"
267267

268-
```python hl_lines="14"
268+
```python hl_lines="21"
269269
--8<-- "examples/event_handler_graphql/src/assert_async_graphql_response_module.py"
270270
```
271271

0 commit comments

Comments
 (0)