We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbf0c3b commit 1696526Copy full SHA for 1696526
tests/e2e/event_handler_appsync/handlers/appsync_resolver_handler.py
@@ -79,7 +79,8 @@ class Post(BaseModel):
79
# PROCESSING SINGLE RESOLVERS
80
@app.resolver(type_name="Query", field_name="getPost")
81
def get_post(post_id: str = "") -> dict:
82
- return Post(**posts[post_id]).model_dump_json()
+ post = Post(**posts[post_id]).dict()
83
+ return post
84
85
86
@app.resolver(type_name="Query", field_name="allPosts")
0 commit comments