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

Request to support `args` parameter in Convex Migrations

With Convex migrations I can use table indexes to only run the migration on a subset. But I can't find a way to take in an argument for which subset to run it on. So every time I wanna change the customRange query I'm forced to push a change. Here's what I'd like to do:...

Backups hanging

For some reason when I click manual backup on both my production and dev instances, it just hangs and spins... can't cancel it either as it says it hasn't started.

Value of table-specific varint in `_id` diverges in local development deployment

Hi, we would like to get local development deployments working for our repository in order to easily spawn background agents. I have created an import script that uses npx convex import to import a JSONL file to a table, and this works well for copying over data from production into development. However, when I create a local development deployment using npx convex dev --local, I notice that the first characters of _id in a table is different than in the same table in cloud prod/dev. This is causing the npx convex import command to raise an error, because it detects mismatching _id formats....

Can't start local development deployment due to missing environment variable

Hi, we would like to get local development deployments working for our repository in order to easily spawn background agents. Regular development deployments work well, but when I try to run npx convex dev --local --once I get the following error: ``` $ npx convex dev --local --once ...

Multi Tenant Use Case

Hi there! Is Convex currently able to handle multi tenant enterprise data? - 100 customers...

Convex Docs Clerk typo `CLERK_JWT_ISSUER_DOMAIN`

The docs mentions CLERK_FRONTEND_API_URL when it should be CLERK_JWT_ISSUER_DOMAIN. https://docs.convex.dev/auth/clerk#configuring-the-backend...
No description

Monorepo with multiple Next.js apps

Hey guys, I have a monorepo (turborepo) with two nextjs apps like this (both consuming content from convex) : ``` apps/ ├── landing/ # Next.js Landing page application ├── dashboard/ # Next.js Dashboard application...

restrict access to ResendOTP auth

I have a very specific use case where I need to be able to block emails that are not listed in a data table from signing in, is there a way to do this? I need to access an api route or the db itself from the function in the (pretty much stock) ResendOTP setup before the email is sent is there any way to go about this?...

Use convex-better-auth with organization plugin

Does anyone possess experience regarding the functionality of the Convex Better-Auth plugin in conjunction with other plugins, such as Organization? I am facing a 404 error with TanStack Router when attempting to invoke the Organization API from the client side.

Adding logging middleware to `ctx.db` to monitor read/write sizes in transactions

Hi, we are running into the too many bytes read in a single function execution error for some of our functions. We would like to better understand what is causing this. However, since some of our queries and mutations are a composition of several smaller queries and mutations it can be difficult to get more finegrained insights. Ideally we would like to create some middleware for our DatabaseReader and DatabaseWriter that logs the (approximate) size of the documents that are queried/modified/inserted....

Concatenating Streams

Hi all! I’m working with the Convex stream helpers and I understand that mergedStream can merge multiple streams and interleave their results based on a specified order. However, I’m looking for a way to strictly concatenate two or more streams—so that all items from the first stream are yielded before any items from the second stream onwards (i.e., no interleaving). Is there a built-in helper or recommended pattern in Convex for this kind of strict concatenation? I couldn’t find this in the docs or the Merging Streams of Convex data article....

I am developing an app with convex and wan't to index blockchain data with GRPC

The library "@triton-one/yellowstone-grpc" is not accesible via convex "use node runtime

array vs join table

If I have a 1:N relationship between things, should I use an array or a separate table like I would in a relational database? eg.: ``` cohortsTable = [{id: "cohort1", enrollments: ["user1", "user2"]}]...

Debugging hanging build - "Analyzing source code..."

Hey all, I have a NextJS project with Convex. I am using the RAG and Agent components, other then that nothing special in my setup. Not quite sure why but when I run my dev command the process hands on "Analyzing source code..."...

How to login from CLI to self-hosted instance

Im currently trying to set up better auth with nextjs following this guide: https://convex-better-auth.netlify.app/#install-component there are some environment variables here which im not sure what to put because it seems like they're autogenerated by logging into convex cloud how do i log in to my self-hosted convex instance? ...

Hitting node action limit, Convex recommends using V8 actions ??

Im getting this error on trying to upload file that requires me to use node action. Then convex throw me this error.
Node actions arguments size is too large. The maximum size is 5 MiB. Reduce the size of the arguments or consider using V8 actions instead, which have a 16 MiB limit.
Node actions arguments size is too large. The maximum size is 5 MiB. Reduce the size of the arguments or consider using V8 actions instead, which have a 16 MiB limit.
...

Index with compound keys - can you use part of the key?

For something like ```ts export default defineSchema({ messages: defineTable({...

useQueryWithStatus from convex-helpers does not catch Validation Errors

I'm trying to catch all the errors given in a useQuery call but when: const params = useParams() const id = params.id as Id<"practices"> ...

Preview deployments custom domain

Is it possible to set a custom domain for convex preview deployments?

Default env vars aren't being used on new preview deployments

I'm using Next.js with Convex and Better Auth, deploying through Vercel. Currently trying to set up a preview deployment. I've set up a bunch of default env vars in the Convex project settings to be used on preview deployments, but when I deploy from Vercel, the convex build push fails because it's missing some env vars, and when I look at the env vars for the new convex preview deployment, it doesn't have any env vars set. Is there anything else I need to set to get the default env vars to show up in new preview deployments? I've scoured the docs / discord but haven't seen anything else....