glucinaterG
Convex Community3y ago
4 replies
glucinater

Migration Stack post code is JavaScript, not TypeScript

I'm currently trying to run a migration and I'm getting type errors when using the code given in this stack post (https://stack.convex.dev/migrating-data-with-mutations). I tried inferring the types but then got this error when testing in the dashboard:
Uncaught Error: Must provide arg 1 `id` to patch
    at <anonymous> (../convex/courses.ts:69:27)

Was there an update to Convex since this article was published?
image.png
Was this page helpful?