StevanS
Convex Community3y ago
2 replies
Stevan

Mutating Arrays

What is the recommended approach for mutating an array stored in the database?

Like if I’m building up an array of followers and I want to patch the document where these followers are stored by removing a specific element and then put it back in the database.

Do you just query the document at the beginning of the mutation, modify the array and then patch it back into the database?
Was this page helpful?