holdenH
Convex Community3y ago
13 replies
holden

Hi I m trying to create a Delete user

Hi! I'm trying to create a "Delete user" internalMutation I can run from the dashboard by passing in a userId to have it delete docs across multiple tables owned by that user.

I tried using the migration helper and calling it on multiple tables from within my mutation, but get this error:
Uncaught Error: This query or mutation function ran multiple paginated queries. Convex only supports a single paginated query in each function.
    at async <anonymous> (../../convex/helpers/migrations.ts:78:20)
    at async <anonymous> (../../convex/helpers/deleteUser.ts:38:4)


Is there a different recommended way to do a migration affecting multiple tables?
Was this page helpful?