void
void•2y ago

Docs for internalMutation out of date

https://docs.convex.dev/functions/internal-functions#defining-internal-functions - i think this doc might be missing something around using internalMutation - i'm trying to upgrade from 0.13 to 0.19 to try and get ready for 1.0 🙂
4 Replies
ari
ari•2y ago
Hey! Thanks for catching that. You're right, the function should be wrapped with internalMutation:
export const markPlanAsProfessional = internalMutation(async ({ db }, { planId }) => {
await db.patch(planId, { planType: "professional" });
});
export const markPlanAsProfessional = internalMutation(async ({ db }, { planId }) => {
await db.patch(planId, { planType: "professional" });
});
void
voidOP•2y ago
cool thanks sorry if this was the wrong part to report!
ari
ari•2y ago
All good! I'll make sure to get this updated in the documentation. #support-community is a good channel for these questions because you get your own thread right away 🙂
Michal Srb
Michal Srb•2y ago
Fixed, thanks for the report!

Did you find this page helpful?