Why ctx.db is changing, and what you should do about it
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Convex 1.31.0 introduces a breaking API change where db.get, db.patch, db.replace, and db.delete now require the table name as the first argument. This change improves API consistency, enhances security by preventing cross-table ID vulnerabilities, and paves the way for custom document IDs. Existing code remains functional but
Table of contents
What is being changed?Paving the way for BYO-IDWill this break my existing projects?How do I update my existing codebase?4 Comments
Sort: