Custom DynamoDB response deserialization #1045
-
Hi, I am extending a query engine with the ability to query DynamoDB. Is it possible to get avoid the deserialization into |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
you could write an You could also use I want to double check that you're building in release mode for your profile results as well. |
Beta Was this translation helpful? Give feedback.
yep! if you look at
body.bytes()
docs it's only bytes if it's in memory already. You should useresponse.body.take()
to take the body. Then outside of this context, usebody.collect().await
to consume the contents.The other option might be to use an override to set your own deserializer which would allow you to grab the body before it had been read.