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

joinplayroom

I have to use joinplayroom and convex. The reason for each function call is 60 fps is expensive. Are you planning such functions of rooms as before without a database to make it cheaper?

Convex Auth on React Native (expo)

I'm trying to connect my convex backend to a react native app made with expo. This backend is already used by my ReactJS app which is external to this expo project. I simply want the two projects to share the same database. The problem I'm having is with the OAuth connection to Google. My current configuration of Convex *(env variables) * is designed to work with the web version. I can't find a solution allowing me to connect Google OAuth with Convex Auth without getting these errors: ...

How to easily update a single nested field?

Why does the dynamic of updating a top level field not apply to nested fields? For instance, why can't I do: ```ts await ctx.db.patch(doc._id, {...

withOptimistic in fetchMutation

Is there a way to use withOptimistic in fetchMutation? I tried to usereact useOptimistic hooks with preloadQuery but
Preload<typeof api.dbquery>
Preload<typeof api.dbquery>
somehow _id and _createdTime is required in new obj....

schema validation conflicts too verbose

see screen recording for an example. Would be great if we could see a clearer diff on the conflicting fields vs a full print of the document and schema for a table (which can get very lengthy as you can see)

Convex Auth 'Invalid verifier' on safari

On safari, I am getting 'Invalid verifier' when trying to login using github or google. The authAccounts and users are being created. I have no problem with Chrome, it works as expected. See screen shots, 1st is safari and 2nd is chrome....
No description

Client Bundle Size

Hi, I’m currently evaluating Convex to migrate from a Firebase SPA (Firestore flavor). I have a question about the size of the Convex client JS bundle. How much JS do browsers have to download before starting using Convex?...

[Convex Dashboard] Editing nested field (with union?) is causing an error

Hello team, I think there is an issue with the last Convex update: When I want to edit an union with nested fields in the dashboard (v.union(v.object(), v.object()) it reports an error, even if I respect the schema (in particular, even if I don't do any modification). Example of validator causing an issue: ```...

I noticed something with convex auth

So if a user signs up with email and password and logs out if another user tries to signs up with the same exact email and password it just signs them in automatically why?

As this product becomes more mature, it is important not to break things with the updates.

Updating to "convex": "^1.15.0", caused some cryptic error for me. And I spent some valuable time trying to figure it out. Rolling back and pinning to "convex": "1.14.0" took the error away. Same for "convex-helpers": "0.1.53", showing some error about no bin. Rolling back to "convex-helpers": "0.1.52", also took that error away. We ideally prefer not to pin packages, and have our CI do automatic updates and run test against them. This broke our CI. Thank you....
No description

[ERROR] Could not resolve "node:async_hooks"

Hello, I have this error when trying to run npx convex dev Any idea? ```...

Help with Openai Whipser

so in convex, I'm trying to generate some text to speech using this sdk ```tsx async function generateAudio(text: string) { const mp3 = await openai.audio.speech.create({...

Reporting Possible Security Concerns

Quick question, what's the preferred method for reporting security concerns? Is there an email address with a PGP key I can write to?

Storing app generated images

My app produces ImageBitmap images. What is the best way to store this on convex. Make a blob or convert it to a png in a temp folder an upload it ? Thanks...

[Convex Auth] Middleware on Nextjs

Following https://labs.convex.dev/auth/authz/nextjs After using signIn from useAuthActions by Email OTP (from resend), ```...

[Convex ents] Getting Multiple docs using compound index in the most efficient way

Hello, How would you get a list of document using ents ? ``` photos: defineEnt({ clientId: v.id("organization_clients"),...

how can i access the roomCode and redirect user

``` export const create = mutation({ handler: async ctx => { const game = await ctx.db.insert("games", { roomCode: generateRoomCode(),...

llamaindex ts on convex

Hello, anyone managed to get llamaindex ts working on convex? It looks there is a problem with a dependency tittoken_bg.wasm

Using migration helpers `pretend` and `deprecated` with a zod schema

I'm defining my types primarily in zod and using zodToConvex I'm missing the equivalent of zid for the pretend and deprecated validators...

pdfme esbuild warnings

I am using pdfme to generate PDF in the backend. After importing the libraries, @pdfme/common. I got some warnings saying something wrong with tsconfig. I thought it was just warning but after I tried to import @pdfme/schemas using plugins. Some of the defined functions are undefined. ...
No description