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

open-source

announcements

How to find a table entry from _id

I want to query the my table and find the table document that has the _id i pass in. How do I do this?

Document ID length

It looks from the source code like document IDs must be between 31 and 37 characters—is that correct? What are the odds that this ever changes?

Include relations data

Hi, what is the best way to get the related data in convex, like in prisma if i have a user table and a cars table i can get the user with the related cars using include. what is the best why to achive this in convex?

npx dev --run <func> no longer works

Using latest, 1.16.3. It looks like npx dev --run <func> no longer runs the provided function.

Svelte + Clerk | Any example of how to get it working?

Hey, i want to integrate clerk with convex, can anyone share an example of this integration or maybe what steps should i follow and i will it give a try (I'm using lucia but i would like to migrate) https://github.com/lucia-auth/lucia/discussions/1707 (will be deprecated) ...

Vercel deployment works but 'Could not find public function for'

I want to make this live:. https://github.com/MagMueller/turbo-expo-nextjs-clerk-convex-monorepo I use Next.js and clerk. Vercel deployment runs through successfully, and I can access my page for 1 sec www.time-is-money.xyz , but then I get Application error: a client-side exception has occurred. And in convex deployment logs I get ...
No description

clerk not supporting https://<site-name>.vercel.app

I started with templated which uses clerk. Now I want to test live. If clerk is not supporting .vercel.app, I need a custome domain, and that means i need to pay upgrade convex plan? Would be nice to test apps quickly also with clerk, without upgrade....

nextjs quickstart guide for javascript has a bug.

Attempted import error: './ConvexClientProvider' does not contain a default export (imported as 'ConvexClientProvider').

Send FCM notifications from convex backend

has anyone cracked sending FCM notification from convex nackend if i try use any admin sdk from google i get errors like the following. " The package "crypto" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error. ...

Not able to connect to Convex

I have been working on a site that uses Convex for about a week. Today, I ran into issues with connecting to Convex When I try to open my project in the dashboard, I see the convex loading spinner. ...

Issues deploying to Fly.io

I'm trying to deploy to Fly.io, but I keep hitting this error:
> [build 5/6] RUN npx convex deploy --cmd 'npm run build':
0.772 ✖ Error: You are not logged in. Log in with `npx convex dev` or set the CONVEX_DEPLOY_KEY environment variable.
> [build 5/6] RUN npx convex deploy --cmd 'npm run build':
0.772 ✖ Error: You are not logged in. Log in with `npx convex dev` or set the CONVEX_DEPLOY_KEY environment variable.
...

Union from data?

I'm migrating a detailed planning system from Airtable to Convex, and one of the data points on each task is the task type. In the original Airtable version, each type is assigned a color. When saving the data, though, I only want to save the name of the task type, with the color only being rendered inside the app for visual reference. Originally I had designed the table schema with the possible options for the task type like this: ```js taskType: v.union(...

Convex Auth: react-native expo OTP throws Uncaught Error: Could not verify code

I'm using the new convex auth in my react-native expo. I'm trying to implement authentication with OTP. After having followed the documentation here https://labs.convex.dev/auth/config/otps, I, then, follow the demo project here https://github.com/get-convex/convex-auth-example/blob/main/src/auth/SignInFormPhoneCode.tsx ...

npx convex import - always pushes to the same/wrong project

👋 Trying to get some test data into a table and for whatever reason, whenever I run npx convex import ... , the data always gets written to the wrong project in my account. - I only have 2 projects in my account. Projects A & B. I would like to import data into project B. If it matters, project A was created first. ...

Is there a way to control the websocket reconnect backoff?

Basically I want to cap the reconnect time to 10seconds. I was just doing some local testing and very quickly went over 20 seconds:
Attempting reconnect in 22248.468971814553ms
Attempting reconnect in 22248.468971814553ms
Any help greatly appreciated....

a little confused about getManyVia

Hey all, I have a table features which stores different feature options and joiner table property_features which connects the features to properties and has an additional details field for property specific information per feature. I'm trying to get all the property features (name, as well as the details), so I thought that getManyVia would be the best option to use, but I'm only getting the names but not the details. Have I misunderstood how this works? extract from schema...

Help with loading images from image id in a table and image sitting in the Files

I'm making a next.js/react app using typescript. I have a query to get every level: ```ts import { v } from "convex/values";...
No description

Stuck at "Parsing uploaded data"

I'm trying to import a small .jsonl file like the docs say, however I get stuck at "Parsing uploaded data" forever. The data is ok and it should pass schema validation. I originally tried with a .csv but no luck so I switched to jsonl but the result is the same. I'm using mac with vscode and I've been able to import the data before, but no luck now whatsoever. Any help? Thanks!...
No description

Accessing deployment metadata via cli

Is it possible to get the deploy urls via cli?

How can i check if I'm on production or on development?

I think you need to define variables in convex variables and you cannot use ones from .env file. But how can i define them in convex so that I get development when i run this on localhost and production when it's a deployed version?