stardust
stardust4mo ago

Request Body as argument

how do i pass request.body as an argument since its not a supported convex type
7 Replies
Convex Bot
Convex Bot4mo ago
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!
lee
lee4mo ago
hi let's continue here (cc @v )
v
v4mo ago
You can convert it to an int array or maybe an arraybuffer I believe
lee
lee4mo ago
it sounds like you're trying to pass request.body from an http action to a node action, is that right?
v
v4mo ago
Then convert it back or whatever you need to do
stardust
stardustOP4mo ago
Yes
lee
lee4mo ago
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

Did you find this page helpful?