1. Modify your schema to allow old and new values. Typically this is adding a new optional field or marking a field as optional so it can be deleted. As part of this, update your code to handle both versions.
2. Define a migration to change the data to the new schema.
3. Push the migration and schema changes.
4. Run the migration(s) to completion.
5. Modify your schema and code to assume the new value. Pushing this change will only succeed once all the data matches the new schema. This is the default behavior for Convex, unless you disable schema validation.
# What we've been shipping Happy November! October was a busy month at Convex. Here's a quick summary: š [Staged schemas](<https://docs.convex.dev/database/schemas#staged-validators>): change a field's type on a big table with `.staged()`. Convex checks existing documents in the background while your app keeps running. š [Bundle analyzer](<https://www.npmjs.com/package/@convex-dev/bundle-analyzer>): run `npx @convex-dev/bundle-analyzer summary` to see what's taking up space in your Convex bundle and get tips for shrinking it. š¦ [File storage in mutations](<https://ship.convex.dev/changelog/convex-v1-48-0>): `ctx.storage.store()` and `ctx.storage.get()` now work in mutations, so you can store a file and save its storage ID to a document atomically. š·ļø [Project tags](<https://docs.convex.dev/dashboard/projects#project-tags>): label projects with up to five tags and filter your projects list by tag in the dashboard. š§© [Pagination now works in component queries](<https://docs.convex.dev/components/authoring#pagination>), just like in your app's queries. š [HTTP actions can now return responses up to 100 MiB](<https://ship.convex.dev/changelog/item-411-increase-http-response-size-limit>), up from 20 MiB. ā The new [`v.function()` validator](<https://ship.convex.dev/changelog/convex-v1-49-0>) type-checks references to queries, mutations, and actions in arguments, component interfaces, and schemas. š The dashboard [keeps your log search in the URL](<https://dashboard.convex.dev/deployment/logs>), so teammates who open your link see the same results. š§Ŗ [`convex-test` 0.0.58](<https://github.com/get-convex/convex-test/blob/main/CHANGELOG.md#0058>) scopes globals to each function call, so changes one function makes don't leak into other functions or tests. š Mutations can [sign JWTs with `ctx.auth.signJwt`](<https://ship.convex.dev/changelog/convex-v1-48-0>). See everything we shipped in the [full changelog](<https://ship.convex.dev/changelog>).
David Winer Ā· 3d ago
We just published security advisories affecting local dev and anonymous dev in `npx convex`: ⢠https://github.com/convex/convex-backend/security/advisories/GHSA-x7w9-v9f4-288p ⢠https://github.com/convex/convex-backend/security/advisories/GHSA-p8mc-r577-q897 ⢠https://github.com/convex/convex-backend/security/advisories/GHSA-qw8j-4xj7-6f28 ⢠https://github.com/convex/convex-backend/security/advisories/GHSA-9mw5-7p28-rvv4 We strongly recommend you to update the version of the `convex` package you use to `1.48.0` or newer.
Nicolas Ā· 2w ago
Small improvement: you can now call `.paginate()` from component queries! There's still a limit of one `.paginate()` call per query tree, but your app can now hand pagination off to a component instead of doing all pagination in the main app component. Check out the [docs](https://docs.convex.dev/database/pagination) to learn more about how to use pagination in Convex.
David Winer Ā· 2w ago
Join the Discord to ask follow-up questions and connect with the community