@@ -58,7 +58,7 @@ Here's an example where we have two separate functions to resolve `getTodo` and
58
58
59
59
=== "getting_started_graphql_api_resolver.py"
60
60
61
- ```python hl_lines="7 13 23 25-26 35 37 48 "
61
+ ```python hl_lines="14 20 30 32-33 42 44 55 "
62
62
--8<-- "examples/event_handler_graphql/src/getting_started_graphql_api_resolver.py"
63
63
```
64
64
@@ -112,7 +112,7 @@ You can nest `app.resolver()` decorator multiple times when resolving fields wit
112
112
113
113
=== "nested_mappings.py"
114
114
115
- ```python hl_lines="4 10 20-21 23 30"
115
+ ```python hl_lines="11 17 27-28 28 30 37 "
116
116
--8<-- "examples/event_handler_graphql/src/nested_mappings.py"
117
117
```
118
118
@@ -126,7 +126,7 @@ You can nest `app.resolver()` decorator multiple times when resolving fields wit
126
126
127
127
For Lambda Python3.8+ runtime, this utility supports async functions when you use in conjunction with ` asyncio.run ` .
128
128
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"
130
130
-- 8 < -- " examples/event_handler_graphql/src/async_resolvers.py"
131
131
```
132
132
@@ -151,13 +151,13 @@ Use the following code for `merchantInfo` and `searchMerchant` functions respect
151
151
152
152
=== "graphql_transformer_merchant_info.py"
153
153
154
- ```python hl_lines="4 6 22-23 27-28 36 "
154
+ ```python hl_lines="11 13 29-30 34-35 43 "
155
155
--8<-- "examples/event_handler_graphql/src/graphql_transformer_merchant_info.py"
156
156
```
157
157
158
158
=== "graphql_transformer_search_merchant.py"
159
159
160
- ```python hl_lines="4 6 21-22 36 42 "
160
+ ```python hl_lines="11 13 28-29 43 49 "
161
161
--8<-- "examples/event_handler_graphql/src/graphql_transformer_search_merchant.py"
162
162
```
163
163
@@ -185,7 +185,7 @@ You can subclass [AppSyncResolverEvent](../../utilities/data_classes.md#appsync-
185
185
186
186
=== "custom_models.py.py"
187
187
188
- ```python hl_lines="4 7 23-25 28-29 36 43"
188
+ ```python hl_lines="11 14 30-32 35- 36 43 50 "
189
189
--8<-- "examples/event_handler_graphql/src/custom_models.py"
190
190
```
191
191
@@ -214,7 +214,7 @@ Let's assume you have `split_operation.py` as your Lambda function entrypoint an
214
214
215
215
We import **Router** instead of **AppSyncResolver**; syntax wise is exactly the same.
216
216
217
- ```python hl_lines="4 8 18-19 "
217
+ ```python hl_lines="11 15 25-26 "
218
218
--8<-- "examples/event_handler_graphql/src/split_operation_module.py"
219
219
```
220
220
@@ -242,7 +242,7 @@ Here's an example of how you can test your synchronous resolvers:
242
242
243
243
=== "assert_graphql_response_module.py"
244
244
245
- ```python hl_lines="10 "
245
+ ```python hl_lines="17 "
246
246
--8<-- "examples/event_handler_graphql/src/assert_graphql_response_module.py"
247
247
```
248
248
@@ -265,7 +265,7 @@ And an example for testing asynchronous resolvers. Note that this requires the `
265
265
266
266
=== "assert_async_graphql_response_module.py"
267
267
268
- ```python hl_lines="14 "
268
+ ```python hl_lines="21 "
269
269
--8<-- "examples/event_handler_graphql/src/assert_async_graphql_response_module.py"
270
270
```
271
271
0 commit comments