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

Sharing data between modal and convex

What’s the best way to share data between modal.com and convex.dev

"New table referralOverview has IDs that conflict with existing table configColumns"

Hi, when trying to import a snapshot into a preview environment during a deploy, I get this error. Everything works fine locally when devving and then I export the snapshot directly from dev. I manually checked the ID's of configColumns against the ID's in referralOverview and there are no matches. How do I fix this?

Multi-tenancy

Hi All, Does convex support the ability for each user who has signed up to my app to have their own database? I want to have a sign up page where upon completion, a new database would be provisioned. The schema and everything would be the same. ...

Preload query does not work with dynamicIO

If you enable dynamicIO in the Next.js canary channel and try to preload a query you get this error:
[ Server ] Error: Route "/" used `Math.random()` outside of `"use cache"` and without explicitly calling `await connection()` beforehand. See more info here: https://nextjs.org/docs/messages/next-prerender-random
[ Server ] Error: Route "/" used `Math.random()` outside of `"use cache"` and without explicitly calling `await connection()` beforehand. See more info here: https://nextjs.org/docs/messages/next-prerender-random
...
No description

Bug: Can't preload a page with pagination

This is my frontend code: ```tsx export default async function HomePage() { const preloadedPosts = await preloadQuery(api.posts.getNewestPosts, {...
No description

Handling "Too many reads" Error During Mass Deletion in Convex

Hello Convex team! πŸ‘‹ I'm encountering a read limit error while implementing parent-child record deletion in our application. Would appreciate guidance on the best approach. The Error...

extra field `ttl` that is not in the validator - cache component

I have setup the cache component in my project, followed all the steps as per the convex docs but getting this error. currently stuck at it.
No description

resend not working in internalMutation

I had a problem where I wasn't able to send emails with Resend. My API key was configured, my resend domain was verified and magic link email were working fine (after setting the from param). But when I tried to send emails at runtime resend.emails.send() would give the error ...

Disabling query with TanStack Query

I am fetching data using convex query with TanStack query in my React project. I want to disable running query by condition. Here is the code. ```const { data: fileUrl } = useQuery({ ...convexQuery(api.tables.files.getFileUrl, {...

Using gemini with openai library working in action but not http action

I followed this guide to integrate ai streaming in my convex app. But instead of using openai, I want to use gemini because of their larger context window (1M tokens for gemini-1.5-flash). I get a bad request answer just using the basic example from google docs here. However, the exact same code works in actions which I assume it is due to the fact that http action cannot run node packages? What I don't get is why it is supposed to work with openAI (cannot try as I am not located in a country where opeanai is available) but it doesn't work for gemini. But still works in actions. Any idea if there is a way to make it work? Here is the code as an example (gemini api key created via google ai studio): ```typescript const openai = new OpenAI({...

How to add a dynamic route to the httpRouter

I am trying to create an endpoint in the form /package/{packageId} and this should return all the details for that specific package. How to create such a route to the Http router in convex?

issue with verifying password

i tried to look at the docs and source code of the password provider and tried this action to validate the password but i am getting an error: Uncaught ReferenceError: crypto is not defined
No description

Choosing a React Framework

Is their a guide or advice for choosing a React Framework I’ve been listening to the podcast which seems very opinionated about front end approaches and keeping it simple. However I’m new to React and it’s difficult to know the pluses and minuses of different frameworks...

Default values in table field

I have a table with a v.object field. In the future this object might get more values set in it. Is there a way to updated the existing data in the database with default values?

Hey i a not able to use my url call back in convex

when i use my convex url i am able to use github and google oauth but redirecting me to local host instead when i add my domain it is not able to login through google and github.

help me setup a cronjob that loops through my entire user table and updates a number

currently the following code errors out because i have more than 4096 user rows ``` export const replenishPointsForAllUsers = internalMutation({ args: {},...

Python

i have talked to several companies that are using fullstack javascript/typescript plus a data processing pipeline that uses python Of course, we should use convex for the typescript backend but what is the simplest recomendations for the rest...

"Database bandwidth" Discrepancy

Hi, I'm seeing a big discrepancy between the "database bandwidth" value displayed in: 1. The top table on the usage page (500.6 MB) 2. The aggregate "database bandwidth" of all my functions (8.47 MB) Both values are showing the usage only for today 18th Nov. I'm struggling to debug what led to the sharp increase in database bandwidth read, since the high database bandwidth is not showing up on the "per function breakdown" section. Could I get some help to understand this discrepancy? ...
No description