Request Body as argument
how do i pass request.body as an argument since its not a supported convex type
7 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Ask in the <#1228095053885476985> channel to get a response from <@1072591948499664996>.
- Avoid tagging staff unless specifically instructed.
Thank you!
hi let's continue here (cc @v )
You can convert it to an int array or maybe an arraybuffer I believe
it sounds like you're trying to pass
request.body
from an http action to a node action, is that right?Then convert it back or whatever you need to do
Yes
is the body more than a megabyte? if so, you can store it in storage. if not, you can pass it in as a
ArrayBuffer