let someSearchField === ""let someSearchField === ""). This is problematic because we now need to create an entirely separate index to return all records instead of handling that by default when no filtering criteria is provided. This also would align with other search engines like elastic.foo: defineTable({ name: v.string() }).searchIndex("name", { searchField: "name" })foo: defineTable({ name: v.string() }).searchIndex("name", { searchField: "name" })db.query("company").withSearchIndex("name", (q) => q.search("name", name)).paginate(paginationOpts)db.query("company").withSearchIndex("name", (q) => q.search("name", name)).paginate(paginationOpts)const result = someSearchField ? ...withSearchIndex(...) : withIndex(...)const result = someSearchField ? ...withSearchIndex(...) : withIndex(...)# 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