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

q.lte() query includes records with null or undefined fields, causing inconsistent filter results

When using q.lte() condition, the query returns documents where the indexed field is null or undefined, in addition to valid numeric values. This results in inconsistent and incorrect query outputs compared to gte(), which behaves as expected. LTE ``` export default query({...
No description

How to deploy when using Expo for mobile app?

Hey there, I am developing a mobile app with React Native Expo and Convex. I am now ready to submit it to TestFlight and start testing it in a real production environment, but I am not sure how to deploy the convex part of things. I do not have a website / webapp version, it is only a mobile app. Any guidance is much appreciated. ...

what is the BEST way to do left-join query like in Convex?

schema: users { userId, name } post { postId, userId, post } relationship:...

Using image with agents

I'm trying to allow my agent to use an image URL I send him and call a tool to describe the image(s). The problem is that by providing it in my content such as : {type: "image", [...]} my agent can't retrieve the URL anymore. So in the following calls, it can't perform actions on my image. I found a solution for it to work but it's to add an other message in my content with the image url (but it's ugly AND, how am I supposed to hide it from the user ?). That way my agent will have the url for further tool called....

Invalidating useQuery cache on refetch

Hey, I'm working on a language learning app, it pulls 10 questions from my convex DB for each quiz game. However I noticed the questions are cached, so restarting the game just reshuffles the 10 or so questions it pulls at the start, and creating a new game doesn't actually pull a new set of questions which is how it's configured to behave. Anyone know how to invalidate cached queries? I couldn't find my answer in the docs

Getting No matching routes found with Better-Auth Github OAuth

I have set up better auth and convex in my react native with expo project. I am trying to get Sign up with GitHub to work, but I am running into an issue. After I log in to github and authorize the application I get redirected to https://<my-deployment>.convex.site/api/auth/callback/github (the Authorization callback URL I have set in the github oauth app) and get a screen that just says No matching routes found I can see that it is linked and the data is added and all that, it is just the redirection that isn't working. What am I missing? Thanks...

How can I use baml client in convex function?

I have 'use node'; in file where i use the client and my convex.json is as follows ```json { "functions": "src/convex/", "node": {...

'getLogoUrl' implicitly has type 'any' because it does not have a type annotation and is referenced

When I use something like this (return internal query directly) then I get: 'getLogoUrl' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.ts(7022) why is that? Shouldn't it infer type? ```/** * Get a signed URL for the project's logo asset, if present...

Duplicate billable queries after refresh

EDIT: Start reading from this message: https://discord.com/channels/1019350475847499849/1424126402101510254/1424371756256460810 TLDR: When using Convex + Clerk in a React app, all the Convex queries in a page are executed two times when user refreshes the page. For example, if a page has 3 distinct useQuery functions and user refreshes, logs show 6 executed queries instead of 3. Even for a medium size app this can result in hundreds of thousands of additional (unnecessary) billed function calls per month....

Combination of Action Retrier & Rate Limiter

I use the loops api which is rate limited and i would love to combine these two modules so a retry because of a 429 is not counted towards the action retrier. If anybody has example code of that or tried it before and has a solution to this. Help would be highly appreciated....

ConvexAuth Sessions

I realized my project has a problem. When I close the browser and reopen it, it's like the sessions are going down, and I always have to log in again. I use ConvexAuth...

Querying across tables

I am trying to build a dynamic query that can filter records across multiple tables For example, I have a companies table with name, headcount, and userId Then I have a crmCompanies table with companyId (relation), crmId, and tier...

Trying to wrap convex functions as MCP tools

Hi team, I'm building an agentic ERP system using Convex and want to expose it via the Model Context Protocol (MCP) to AI agents like ChatGPT and Claude. Context:...

RAG component dimensionality mismatch

Hey guys, found a small issue/footgun with the RAG component. If the specified embedding dimension doesn't match the actual dimensionality of the model, the search doesn't work. Example: ```ts // Problem! OpenAI's text-embedding-3-large // produces embeddings of dimensionality 3072 by default....

⠹ Finding component definitions...

Non-stop, doesn't stop or change when make a file change

Enable zod 4 support for zodOutputToConvex

Getting a type error when attempting to use zodOutputToConvex with zod 4. Importing z from "zod/v3" works fine.
No description

vat/tax number in the invoice

Hi, i read the thread here https://discord.com/channels/1019350475847499849/1368888341948403745 but it doesnt make sense to upgrade to pro to open a ticket and then go back on the pay-as-you-go mode. Since my country (italy, but in europe) it is required to add the vat number for business related invoices, is there an official procedure to handle it? Currently i'm in the starter plan (pay as you go) and I think paying the pro plan to add this information to the invoice is not appropriate. ...

Hit the limit on Convex and wan't to bumt it up but need to understand what tier works best for me

I am building a web3 startup and I wanted to build it on top of Convex as I see a lot of guys recreating their own infrastructure from scratch, tuning websockets and syncing databases by hand. It is a really hard problem and Convex solves it perfectly, but as I understand with my current free tier it's impossible to give a user good experience. But I am willing to pay a good amount to bump it up but I need to figure out what tier will work best for me with the Convex team :) DM me on Discord, Twitter or Telegram: https://x.com/clar1k...