Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the open-source reactive database for app developers.

Join

support-community

show-and-tell

general

self-hosted

announcements

Cannot upgrade dependencies to the latest versions for @convex-dev/auth and @auth/core

I’m getting the following when trying to update to the latest version of Convex Auth. ``` $ npm outdated Package Current Wanted Latest Location Depended by...

Table architecture for relevancy scores

Hello, I have a postVotes table linking users to posts. Currently using table aggregates to efficiently count total votes per post for display. Now I need to implement post relevancy scoring (combining vote count + time decay), but this requires accessing vote data that's abstracted behind the aggregate layer, so I can't compute relevancy without n+1 querying each time, or going through big full table cron computes....

Kill function

Does anyone know if its possible to kill a function in convex? I made a mistake in a loop i had for a function i ran in my dev env and its running infinitely

Flushing and exiting, error: invalid filesystem data

Getting this error when trying to convex dev --once -vvvvv, no idea what's going wrong and it doesn't seem like there's any more info. How do I debug this?

Migrations suck

I might be off here, but migrations in Convex feel kind of rough. My workflow: I’m on a dev branch tweaking the schema, I write migrations, and I migrate my local data to test. Then in a later update I need to drop some old fields and make more code changes. In “classic” SQL, I can bundle schema changes and data migrations together and let the pipeline roll forward automatically. In Convex, it seems like I have to roll the code back to an intermediate state, run the migrations on prod, deploy that intermediate state, and only then make the rest of the code changes again. It works, but it feels pretty clunky....

Convex in a monorepo package

I want to install convex as a package in my monorepo under packages/convex but when i run
bun convex dev
bun convex dev
it creates a subfolder called convex. Is there a way o have it create files in my current directory if I am in packages/convex?

Custom state in JWT ?

In my expo app: in the auth flow i check whether the user is verified or not 1. I don't want to show the loading state when checking...

fetchQuery: TypeError: fetch failed For a fresh *Next.js* X *Convex* Project

Hello I am getting this error when I am trying to run a fetchQuery on a next.js server component ```typescript //page.tsx import { api } from "@/convex/_generated/api";...

First-class offline migrations

I realise that Convex's focus on online migrations is good policy for apps that run at scale. As an pre-PMF company we just want to rapidly prototype and having to do multi-step actions for a new non-nullable field (1. add optional field, 2. migrate, 3. remove optionality) really kills our speed. This approach also kills typesafety. I provide an example below...

Optimistic messages with agent threads?

https://docs.convex.dev/agents/messages I want to integrate optimistic updates for my agentic chat functionality. The problem is that Agent actions require action ctx and not mutation, but optimistic updates are only available for mutations and I can not use internalActions inside mutations. What is the solution here?...

Deploying to existing preview deployment

A few days ago I was able to deploy my code to an existing preview deployment by using npx convex deploy --preview-name but now I get an error when I try to do that...

Realtime Support for Non-Supported Languages

We’re building an AR glasses app in Unity/C# against an existing Convex backend. The new OpenAPI generation is great for typed HTTP access, but it doesn’t expose Convex’s hallmark reactivity, so our app can’t “stay live.” I’m proposing a modest, incremental addition: a realtime subscribe/watch endpoint documented with AsyncAPI. This unlocks non-JS platforms (Unity, Unreal, IoT) with minimal surface area. Why this matters - OpenAPI (beta) gives us type-safe HTTP calls from languages Convex doesn’t officially support, but those calls are not reactive / not real-time.
- Convex’s core value is automatic realtime via reactive queries, no cache gymnastics, which today is only available through the first-party TS client. Bringing a small slice of that to standard protocols would let other runtimes participate. ...

Rename table through migration while maintaining _creationTime

I want to rename a table. I understand it's not directly possible; only through migrations. But, we're running into the issue that all _creationTime fields are now reset. I also don't seem to be able to write those during the insert. I tried adding a new creationTime field, but now I have to add it to all indices to maintain the same ordering as before....

Node 18 Deployment Warning in Cloud Dashboard

After following the step in this doc (https://docs.convex.dev/production/project-configuration#configuring-the-nodejs-version) we are still getting the following warning: This deployment is using Node 18 and will be automatically upgraded to Node 20 on October 22, 2025. To manually configure the Node version, visit the docs. Our convex.json: { "node": {...

Project limit

I want to create projects on behalf of my users. So whenever my user vibe codes an app i want to have an entire convex project act as their backend. It says the limit is 100+ any idea if convex is a suitable solution for this use case?

Can't wrap my head around paginated queries with advanced filters

I have this complex query: ```ts export const listAvailable = protectedQuery({ args: {...

Custom Privy Auth Integration in Convex

i’m running into an issue with my convex setup using privy for authentication and could use some guidance. i’m currently using both ConvexAuthProvider and a custom privy implementation with ConvexProviderWithAuth in my react app. shawn pointed out that these two won’t work together out of the box, and i need to create a custom auth provider for privy. does anyone have any example that i can refer to? im unsure what to implement in the custom auth provider....

"Transient error" happening on every action call

I'm getting Transient error while executing action error on an action that only calls gemini with ai-sdk. Even though it says transient it happens consistently when sending images over 15MB to gemini to read and make an analysis with. I"m not downloading the image in the action or anythin, just passing an imgUrl. I'm using 'use node'. the main issue is that I can't see any additional errors. I'm happy to share all the code necessary or talk with any convex engineer. This is the only related gh issue I found https://github.com/get-convex/convex-backend/issues/179 but no resolution there. I've also see there are other issues here in discord related to transient errors, but in those cases they are fixable via retries. In my case it always happens when I use larger images (but not super heavy really) I'm new to convex, I rewrote my project in it and I'm a paying customer, this is a bummer because I really liked the rest of the things, but I'm lost with this one...

Does CONVEX_DEPLOYMENT change the generated code in any way?

While CONVEX_DEPLOYMENT and a key are required to run convex codegen, if the value is changed, does it alter the generated code? I'm trying to understand under what situations its safe to cache the codegen output. Secondary question: Why is CONVEX_DEPLOYMENT and a key necessary to run the codegen step?...