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

I am setting up Preview Deployments. I

I am setting up Preview Deployments. I just saw this, I think it's just a temporary error, but the CI build (Vercel) didn't abort. Could it be that no error exit signal was sent or such?
No description

conditional filter

Is there a way to conditionally filter a query? It doesn't seem possible to break up the chaining conditionally, and it also doesn't seem possible to exit early from the .filter(...) function. Id rather not write out the entire query chain multiple times for each condition, as this is the only part of the query that changes.

caching

Is something like redis needed when using convex if it has built-in caching. I know the point of caching internally with convex is already great, however what if we want to limit the calls to the database because even if it only takes 80ms it still uses function executions. I guess what im asking is it smart to wrap convex in our own cache system to prevent more database calls or maybe a trick we can use to cache things ourselves, and to keep everything realtime maybe some kind of cache subscr...

Local backend

Would convex every be able to be can locally? Like maybe in a docker container? That way we could develop locally and test the limits of querying without worrying about reading a million rows for fun then running out of execution hours for the month?

relationships / joins

For example and more clarification this is my query: export const getDiagrams = query({ args: {}, handler: async (ctx) => {...

For some reason, on the dashboard the

For some reason, on the dashboard the Run action button greys out randomly. Any ideas for what might be causing that?

Logs out of order, duplicated

Logs are generally out of order, and there are often duplicates. Is that expected? This isn’t project or function specific, seems to just happen in general.

thread about NODE_ENV

Happy to hop on a quick call and walk you through it or move it to DM to save this channel

NextJS support

does convex work/stable with NextJS v 12?

Tail Logs from CLI

I forgot, whats the command for the cli to see the log outputs from convex dashboard locally

@Omar Farooq my version lens Vscode

@Omar Farooq my version lens Vscode extension told me there was 1.5.1 available and i upgraded without a problem. So then it was a tag mistake from your workflow?
No description

Do I need TRPC with Convex?

So i was wondering, since convex is type safe by default and seems to make api request to convex from its hooks, is there a need to use something like trpc while using convex? TRPC + nextjs makes the api routes more type safe, however convex kinda has its own api from the /convex folder when you call api.task.get in your components. So it seems like TRPC would not really be needed....

Is there a way to run `npx convex

Is there a way to run npx convex deploy but for dev? I want to sync my local code (schema) with my Convex dev env, and then run some npx convex run xyz which deplends on the schema change. Alternatively can I somehow run convex dev but exit once the schemas have been synced? Eg. since convex dev is kept alive, it won't work for scripting. 1. CLI: Sync schema.ts...

pagination enhancements

Looking for a couple enhancements to paginated queries: 1) Count on the response. Its valuable to inform the user of the total number of records available to paginate through. 2) 'skip' arg shortcircuiting like useQuery has. Either of these on the roadmap?...

Hosting for Script Tag

Is it possible to use Convex on a Webflow or Framer websites? On these platforms we can add script tags, but we can't host the /convex folder... so I'm looking at the docs https://docs.convex.dev/quickstart/script-tag and a little confused. Can I host my repo with convex functions at say domainA.com, and then domainB.com is on Webflow or Framer, has the JS script installed, and it calls the convex URL at domainB? If that makes sense, but I think I'm confused and this isn't possible.

Testing functions

Hey there, I'm curious how/if people are testing actual convex mutations and queries? For example I have some rather complex mutations for upserting docs following 2-3 levels of relations which would really benefit from some automated testing. Are there any best practices or recommendations for this?

Rate Limit with DB

this is more of a general knowledge question, but is it a good idea to store user rate limiting in my database? I guess it is, cause realistically there ain't other options ig. I also don't know how much faster a KV database is for this (in comparison to a doc with a single indexed row), but I don't wanna use multiple database providers (since Convex doesn't do KV)

Dashboard performance

Should I be expecting the dashboard table view to be functional for large tables or is it more for getting off the ground with smaller datasets

Stripe and Convex

has anybody worked with integrating stripe with convex before? I am following this documentation but I am still a little lost https://stack.convex.dev/stripe-with-convex...

OCC and Atomicity | Convex Developer Hub

I have read this article a couple of times, and I think I get it, but I have a scenario I would like to check with you to be sure. https://docs.convex.dev/database/advanced/occ I am writing a simple migration setup and it stores each "migration" in a "migrations" table. ...