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 logic between queries and mutations

hello, I'm having an hard time calling an internalQuery from a mutation action. Is this possibile?

SQL support

Does convex support MySQL / SQL queries

How reactive is ctx.auth.getUserIdentity?

Hi guys, is UserIdentity fully reactive?

TipTap / Live Collaboration

Hello! anyone worked with convex and TipTap text editor for live collaboration?

Attaching metadata to console.log

hello, is there a way to include automatically in logs ( preferably via console.log() ) a specific "common" value that is used afteward to debug a "session"? FOr session here i mean a set of function which are needed to complete a bigger task. Example, I have a task that requires 15 mutations and 3 action calls. In datadog/axiom and i want to "isolate" all the functions related to that specific task. Ideally i want to add the ID of this task to all the related console.log wherever they are call...

Custom bundling

I'd like to run ts-patch https://github.com/nonara/ts-patch my convex code so I can use ts compiler plugins (its compile-time only, not runtime), but you need to use tspc instead of tsc. Is it possible to tell the convex cli to run tspc?

Concurrency of useQuery calls

In a component with multiple useQuery hooks, do the web requests associated with each hook get executed in parallel? To exemplify, let's say we have a component with three useQuery hooks where each query takes 50ms to complete. Will the component wait 50ms or 150ms for the data from all three queries?

Ian Macartney

I've spent this morning reading through nearly all the Convex docs written by @ian - they are very well written and interesting to read. Great work Ian 👍 , I really appreciate this in-depth documentation. Here is the link if anyone else is curious - https://stack.convex.dev/author/ian-macartney

If applicable, can anyone tell me why

If applicable, can anyone tell me why you're using Convex over e.g. Supabase? Just researching my options here!

Hello world! 👋

Hello world! 👋 I recently started using Convex for two different NextJS projects and been really enjoying it so far. One thing that has been a little confusing the deeper in I get is the convex-helpers package. It's really helpful at reducing duplication, but it feels odd that it's not deeply referenced/built into the docs. It actually introduces some new patterns for defining schemas/building functions that aren't really talked about at all int he docs....

Client-side caching of queries

Does Convex have a built-in client-side cache for when the same useQuery statement is used across multiple React components that will be rendered within the same render cycle; or is the cache strictly server-side, thus causing a web request to still be made for each useQuery statement?

Custom claims in JWTs

I'm using Convex custom auth to connect a AWS Cognito user pool. I've successfully got it working, though I'm unable to access my custom JWT claims in Convex. I'm using custom claims for role based access. The JWT contains claims such as: ``` { "sub": "some-value",...

Not sure what you mean by integrity. The

Not sure what you mean by integrity. The convex server uses the token provided for authentication. The token comes from the clerk API. For SSR, you need to provide the token server-side since there isn't an authenticated ConvexProvider wrapping everything. When you provide the token server-side, it fetches the authenticated results. On the client-side, it has an authenticated provider and the requests from there use that. In both cases, the token is the same and Convex handles the token validation and parsing. Let's make a support thread to continue talking about how auth works in Convex?...

Templates

I would start with Expo. See our quickstart and the monorepo template. https://www.convex.dev/templates

Bandwith help

Does anyone have tips to lessen bandwidth consumption for an LLM App? I feel like 953Mb for 20 conversations around 90 messages each session (10/mb each message) is too much or is this normal? I
No description

App Store submissions with Convex

Yeah, but I'm looking for a guide similar to deploying to vercel: https://docs.convex.dev/production/hosting/vercel

Convex optimizing queries

Yea, I am getting acquainted with the idea that, of course I could write a slow query function, but there's some faith that Convex will know what my function is trying to do and optimize the database transaction(s) for me

Ignore extra fields

is there any way I can get convex mutations, queries and actions to ignore extra fields? it is very annoying (and unsafe) having to manually delete _id and _creationTime fields
No description

Triggers

Is it possible to subscribe on the backend side? I'm thinking of chained that get triggered if an upstream dependency changes. Sort of like a DAG like in Airflow, that when a dependency changes it markes downstream tasks as stale and re runs them.

Secure SSR patterns

how to do session management with: - Clerk - Convex ...