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

Multiple deletion issue

i have a table that is hooked with convex triggers & aggregate .component THe error is somewhat related to triggers i think.
No description

Exclude a folder from automatic API generation in Convex?

I would like to exclude a specific folder from automatic API generation. Specifically, I want to have a ./helpers/feature folders to store helper functions that should not be treated as API functions. However, since these helpers are used only by convex, I would like to keep them inside rather than moving them outside convex/. Is there an official way to configure this, like a .convexignore file or some setting in convex.json? It seems like there is a "exclude" array in convex.json but putting my folder path inside the array is not working....

Patching two values in a document causes functions to be re triggered

I have a function called checkGuess which checks the user's guess and returns data relating to their guess. Additionally, it updates a the "level" document in my levels table by adding 1 to times played and adding 1 to correctguesses if they got it right. However, when I add this patch code, it is triggering my original function again that pulls down 5 random levels and is causing the game to loop indefinitely? ```ts export const checkGuess = mutation({ args: { levelId: v.id("levels"), selectedImageId: v.id("images") },...

Auth in scheduled Actions

So I am scheduling an action from a mutation. The action calls an API and updates the DB. I am using clerk for auth along with rls. But when this action runs I am getting errors in logs on cannot write in db checkAuth....

App Disabled: How to Fix Convex Storage Issues

My app stops working and got "Your projects are disabled because the team exceeded Starter plan limits. Decrease your usage or upgrade to re-enable your projects." So I deleted most of my files(now under 300 mb) via "Files" under the convex project, but rechecking the "File Storage" under "Usage" still shows 2.08 gb, and my app still not working. What should I do?
No description

Financial infrastructure provider requires IP whitelisting for API requests

Hi, I'm working on a fintech application using convex as the backend, I need to integrate with a major 3rd party provider, they require IP whitelisting to enable calls to their API. How can I get the IP of my deployment to integrate with their platform, I don't mind if this is part of the paid feature

Convex backend versioning

i am using convex as a backend for a mobile app, and if i update the production convex backend and the mobile is not udpated by users will cause the mobile application to break

Increased incidences of generic failure + warning

I've been seeing greater incidences from my Convex actions and HTTP actions in the last few days of failures with the message Your request couldn't be completed. Try again later. and the warning Client disconnected. The most curious part (to me, anyways) is that in all of these instances the actions/HTTP actions seem to actually be functioning just fine. Even if the action in question is reported as a failure, it nonetheless appears to have behaved as though it succeeded. What do those messages mean? Should I be concerned? It's not clear to me what the pattern is here, it seems fairly unpredictable (although I can reproduce them, sometimes)....

unable to push deployment

I get this bug when trying to push my code to convex āœ– Error: Unable to push deployment config to https://giddy-hyena-745.convex.cloud āœ– Error fetching POST https://giddy-hyena-745.convex.cloud/api/push_config 400 Bad Request: Error: Hit an error while pushing: Uncaught TypeError: Cannot read properties of undefined (reading 'json')...

MCP setup in Cursor not matching guidance.

Newbie here with fresh install. I'm assuming something very recently changed. But when I try to add a new MCP server in Cursor, I don't get the UI for entering details (pic). I get a new mcp.json file. Not sure what to do next. Help?
No description

R2 Store Method

There is a 'store' method in the documents to store files in actions but it's not available in the package.

Tips on sending batch notifications to a large group of users at once?

Hi team, for context - I'm storing user ExpoPushTokens in my users table in Convex. I was reading some of the docs on cron jobs in Convex and was wondering what the recommended approach would be to send daily notifications to a large group of users at once (doesn't have to be at exactly the same time). I was thinking I could make a call to fetch the users table (though I'd probably wanna do this in a paginated manner so I don't fetch too many items at once), get the Expo push tokens that way, and then make batched calls to the Expo service using an internal action. Is this the recommended approach for a use case like this?...

Create a physical backup file

I want to create a physical backup file. Is there a way that convex allows me to export my database ?

Fetch runs out after a minute in my "use node" action

```js "use node"; import { api } from "./_generated/api"; export async function generateAndUploadVideo(ctx,auth,title,script,tags){ let url = process.env.MOVIEAPI_URL+"/generate";...

Is auth context passed to scheduled actions from server side queries/mutations?

I'm calling an action within a server side mutation using: ```ts await ctx.scheduler.runAfter( 0,...

Migrations calling HTTP

Hi, I wanted some advice on how I would have a migration call an HTTP function. For example: Run migration on all documents that will...

Optimistic Update & Image Uploads

I'm looking for a way to handle optimistic updates along with image uploads. Basically want the use to be able to add an image, and use optimistic updating and upload after the fact. Has anyone accomplished this?

Comprehensive Searching

Hi there, I am switching from MongoDB to Convex for a number of reasons, but one reason is the integrated search. With search you usually have to have a main database and a search database that needs to be in sync. One of my main use cases is searching and having advanced search features in Convex would be amazing such as faceting, search synonyms, etc..

Why is calling Convex queries/mutations directly an anti-pattern?

I'm currently working through refactoring my Convex queries and mutations to allow upgrading to 1.21, which throws a type error when you call Convex functions from other Convex functions. The docs recommend relocating your functions into a model/ directory, and then importing and calling those functions from your Convex mutations and queries. I have a few questions:...

How to set `CLERK_JWT_ISSUER_DOMAIN` for preview

Wondering if it's possible to set a CLERK_JWT_ISSUER_DOMAIN for preview deployments?