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

I get a very strange error in production

I get a very strange error in production but I don't get how to get its logs, vercel doesn't show anything convex dashboard doesn't show anything in its functions too anyone know what I can do in such cases?...
No description

hey all, can someone help deploy my

hey all, can someone help deploy my convex site to vercel please getting this error but I do the command as per convex docs for the build...
No description

what is the best setup with better auth

what is the best setup with better auth for convex out there just need working auth already setup...

Business doing pleasure with you guys

Business doing pleasure with you guys

craft beer. always.

craft beer. always.

Paginating regardless of model is

Paginating regardless of model is exhausting for the end user. Typically they’ll look at the first few results, maybe load a few more, and then switch to filtering. If users are paginating too much, it’s because the sort isn’t as relevant as desired or filtering is limited. This is a very opinionated take, but pagination is a fail case for me, so I’m perfectly happy simplifying it with an infinite scroll controller and focusing my efforts on helping them find the thing they’re looking for quickly. One way you can do this is loading all the relevant customer/company data in a field for search, creating a search index for that, and exposing a search field to the end user. This way, whenever they’re trying to find someone phone number, name, email, etc… they’ll return in the search results....

Beautiful! Where is it?

Beautiful! Where is it?

is there a quick way to delete / reset

is there a quick way to delete / reset all your local convex db data?

Thanks for the contribution and share!

Thanks for the contribution and share! Personally I much prefer Loops over resend. Have used both. Was going to give the Resend component a try since it’s been blessed here, but now this…

Loops component

Hi all, I've created a convex component for sending transactional emails with loops (based on convex's resend component). We've been using it in a few projects and it's working well so far. https://www.npmjs.com/package/@redspringxyz/convex-loops-component https://github.com/redspringxyz/convex-loops-component...

proposing a change to the docs:

Hello Guys, I think I have found some problems with the workos docs. I have described it in #workos. Where can I propose changes? Is there an git repo or something?

@Sara Querying from a collection bd if

@Sara Querying from a collection bd if you ment like that return await db.query("streams").collect() doesnt work. Can you explain that misinformation?...

Hey, after I create a migration I start

Hey, after I create a migration I start getting typescript related issues Type instantiation is excessively deep and possibly infinite.

convex schema + data migration

I think the issue if I understand it (i was having the same for a while) is that typically you have 3 or 4 environments (dev, canary, preview, prod,.....whatever) and you want them to be in sync. So typically at least what i'm used to with like postgres is you have CI automate the deploy between these envs so they are always in lock step. But convex doesnt have a standard database migration tool that effectively runs a set of migrations that you keep adding too that take you up from the default db state to the current state. I wrote my own my system that basically mimick dbmate (https://github.com/amacneil/dbmate) with my own migration tracking table that i am happy to share more about (it mostly works but because convex is so nicely typed does have some issues i'm working out) I really think convex should standardize on this and have maybe even have a componetn for (i'm aware of the current migrations copnent but this is not that). This is a pretty critical feature that any relational db. Its very necessary for production workflows migrationStatus: defineTable({...

Calling Convex from an outside server

Ah that makes sense. Is it possible to use the secret but pass it as an argument to a mutation/query? Would it be secure passing it as a query/mutation argument?

Can I do recursive / CTE query on convex

Can I do recursive / CTE query on convex? I ask because I have a file system / document management system set up on convex, where docs are stored with a parentId this makes moves cheap as we build the hierarchy as we navigate but I want to implement metadata filtering based on path prefix, it would be great if there were CTEs available so that I could do a traversal/recursive query to build this automatically rather than all the machinery to maintain it myself. My use-case is full-text and vector search of documents under a given heirarchy path....

> can I connect both to convex and share

can I connect both to convex and share stuff like auth?
There are kinda two questions here: 1. Sharing "stuff" (i.e. Convex functions and data) - Yes, these can be shared with multiple apps using Turborepo's packages. There are a few threads in #support-community where you can probably find guidance to help with this....

Using an entity component system for an

Using an entity component system for an application I'm working on and did something really fun with convex recently. I was able to generate unique jotai atoms for each instance of a component by entity key derived from Convex generated types. So like.. I don't have to create a dedicated atom for each component and convex really is my source of truth now. Pretty nice. (code in thread for reference)

If you clear a big table (650k docs) in

If you clear a big table (650k docs) in the dashboard then it never loads again. Is this expected or will it recover later?

Node version banner

I did but I assume the change hasnt propagated to all of the users?