CabalDAO
CabalDAO3mo ago

How can I run an action from a mutation function since they can't be http actions?

In a migration function which I've defined as either a mutation or an internalMutation, I need to run an action so I can run a fetch query. How can I run the action from a mutation or internalMutation so I can do ctx.runAction?
2 Replies
Convex Bot
Convex Bot3mo 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. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
CabalDAO
CabalDAOOP3mo ago
I think i figured it out, the mutation just has to start as an action *the migration function then i can do everything thru internal

Did you find this page helpful?