Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the fullstack TypeScript platform for developers and startup founders.

Join

support-community

show-and-tell

general

self-hosted

announcements

Type instantiation is excessively deep and possibly infinite.

I’m encountering the following TypeScript error in my project: Type instantiation is excessively deep and possibly infinite I’m new to TypeScript and don’t have much experience with its type system. My project has a complex directory structure with multiple levels of nesting, and I suspect the deeply nested structure might be causing the issue. ...

Filtering a many:many ENT Edge

Hey all, having some issues with filtering an edge with ents. I am on convex-ents@latest, Typescript 5.7 and convex 1.13.2. here is my query: ``` export const getEventsByTeamId = query({...

how to query all rows (recursively) ?

i need to pull all the between two dates but i need to query an estimate of 1mil++ rows. I know convex doesnt like big queries, so im guessing i need to run in recursively untill it is exhausted.

Why i load image so slow from file storage?

file size is just 661.24KB Please help me...

Set environment variables in an action

I wanted to ask if it’s possible to modify environment variables from actions or cron jobs in Convex? If this is not currently supported, are there alternative approaches to dynamically update and store configuration values at runtime, such as using a dedicated key-value store or similar mechanisms? Looking forward to your response. Thanks in advance and best regards,...

Validate Id<"tableName"> or Doc<"tableName"> on the client or server?

How can we validate the type of Id or Doc in the client with typescript? I've tried instanceOf, and casting the type but it gives me an error that the type passed is of type any, The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter.ts(2358) ```ts...

Issue with uploadstuff Package Breaking Builds on Convex and Vercel

Hello, I'm running into an issue with the uploadstuff package that's causing apps using it with Convex to break, especially after upgrading to React 19 with the compiler. This is also blocking my project from building and deploying on Vercel. I've already submitted a pull request with a fix, but I was wondering if there's any chance for the package to be updated soon to resolve this issue....

Suboptimal Caching Behavior for Public Queries

Current Behavior - Query results are only cached per user session - Cache is not shared between different users or sessions - Even public queries with stable parameters require fresh DB hits for each new user/session - Example: Product listing queries with same filters/pagination hit DB for each new visitor...

isAuthenticated sometimes not true

@Starlord says
i cant catch bug why sometimes after successful convex-dev react signin method auth.isAuthenticated is not set to true. it happens randomly like in 1/50 cases. But it for sure plugin problem everything is implemented correctly on client side...

Convex in Release Build (React Native)

I am moving from a local build (in an iOS simulator) to a release build (on my iPhone) of my app. I am using Convex as my backend. I am noticing that none of the database or API functions are firing as expected. Are there additional setup steps required? Do I need to follow the production deployment steps for this testing phase? Thanks!...

Using AuthJS, how to get current user in route.ts in NextJS.

``` export const getSession = query({ args: {}, handler: async (ctx) => { const sessionId = await getAuthSessionId(ctx);...

is SITE_URL with multiple domains supported for OTPs?

I have a turborepo with two apps hosted on different domains, both using Resend magic links. In production, I need to send a different SITE_URL for each app while using the same branch. I'm trying to use redirectTo, but it doesn't seem to be accessible on the Convex side. How can I handle this?

Type error when using useSuspenseQuery with convexQuery

In a vanilla Tanstack Start / Convex app, I have a query: ``` export const getUserById = query({ args: {...

Convex Auth error with Nextjs 15

Just upgraded the Convex v1 starter kit to "next": "15.1.3" ( "@auth/core": "^0.37.4") and it showed the following error- Unhandled Runtime Error [ Server ] Error: {"code":"InvalidAuthHeader","message":"Could not parse as id token"}...

Cloud backup bandwidth

How does the size of file/database storage relate to cloud backup bandwidth when daily backups are enabled? How much daily bandwidth would be required to back up 1GB of data? From my experience, it seems like backups consume a large amount of bandwidth— is this typical? are there any ways to optimize backup bandwidth?

Ents is in maintenance mode. Should I use it?

"Ents is in maintenance mode. We're open to taking PRs, and will make sure it doesn't break. There will not be active feature development from the Convex team." Is it OK to use ents? Should I avoid using it if I started a new project?...

implement optimistic updates for a paginated query

How can we implement optimistic updates for a paginated query? Does anyone have an example?

Convex Helpers error

I am getting this error while using Convex helper with Next.js 15.

fitness tracking

trying to integrate with https://www.polar.com/accesslink-api/?srsltid=AfmBOooE910RcxJdKHXs5u7sWjpegMxc8yZJQd_HckBMyFSvVUVLhxzP#polar-accesslink-api and eventually with Garmin as well wondering if this should integrate with Convex Auth...

Usage Stats API

Hi guys - is there an available API that displays usage stats in a front-end application. It would be nice to be able to fetch user data usage information, so that if I have limits (ie; per subscription plan) that the User could easily go view a dashboard where they could see their usage for the month. Similar to the Dashboard usage stats, but could be implemented specific to individual users.