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

Dashboard - Act as a User Improvement

Can it be made to toggle the custom data and not reset the data every time you click it? I'm debugging something that requires me to toggle it with valid data....

is there a way to persist env vars of the same preview deployment?

im not sure if im doing sth wrongly, i find that every time i push updated code to the same preview deployment, the env vars are wiped out. is there a way to persist them?

Can't Prepare Convex functions

it keeps showing me this error for a lot of files , i am writing react . The esbuild loader for this file is currently set to "js" but it must be set to "jsx" to be able to parse JSX syntax. You can use "loader: { '.js': 'jsx' }" to do that....

Generic Query and Mutations

My issue is this: I repeat same or quite close things a lot eg. ``` import { useQuery } from 'convex/react'; import { api } from '../../../../convex/_generated/api'; ...

Weird error with TanStack Query

I made this hook to get user info from Convex: ```ts export function useUserProfile() { const { user } = useUser(); const clerkId = user?.id;...

Why is api.users.current showing error

I asked gemini to fix, gemini is also using "api.users.current" in its code. But my vscode is showing error. Here is the picture of error. What is the issue?...
No description

Exclude folder and file names from generated API

I have a file for each query and mutation and the file is named the same as the query/mutation function. This makes the generated API ugly with repeating the function name twice. I searched discord and documentation and to my understanding you are suppose to be able to exclude folders and files from the API generation if you add a underscore to the beginning of the folder or file name. I tried this with both a folder and file but they are still part of the generated API and the underscore is inc...

Is it possible to use the v4 beta of Auth0's Next.js SDK with Convex?

Hello, I am trying to figure out if making a custom integration of Auth0's Beta v4 Next.js SDK would work in Convex Authentication? I did try to make one, the problem is it always show that I am unauthenticated. Is there something I'm doing wrong? Any help is appreciated, thank you. Versions I am using: - "@auth0/nextjs-auth0": "4.0.0-beta.13" - "convex": "^1.17.4"...

Undefined values in indexed queries

How are undefined values handled in an indexed query? I need to write a query like this: .eq(value).eq(undefined).eq(undefined).eq(value) Do these undefined values impact query performance in negative way, or are they treated the same as other data types in Convex?...

Airbyte Convex Destination Connector - 404 Error

Hi, I'm trying to import a json file into Convex via the Airbyte integration Steps to Reproduce: 1. Set up the Convex destination connector in Airbyte. 2. Entered the Convex deployment URL from my Dev account: ...

Convex Auth with Google Provider

I managed to setup the Google provider for the Convex Auth, the problem I am facing is that whenever I try to render some UI based on the user auth state, it seems that is not working, it keeps showing the Google button, here is my code in Nextjs ```js "use client"; ...

Usage "function calls"

what are the cases that makes "function calls" to increase in the convex dashboard usage. My usage "function calls" went too high about 25 million even though no one is using the convex app.....

Airbyte 404 response on Convex destination

Hi, I am getting some weird 404 error in Airbyte when trying to export my Shopify data to Convex. I have followed the official guide to exporting to convex, with the deployment URL and API key, but I keep getting 404'd when it sets up the destination :/

using convex-ents mapping feature

how do i combine map with afilter or getX(index) . something like ```const team = ctx .table('teams') .get(ctx.viewerX().teamId) .map((t: Ent<'teams'>) => {...

http actions with abort signal

I am using the ai package from vercel and stream some llm output. I want to handle client disconnection with the abortSignal property when the user reloads the browser manually but it seems that convex http actions don't support it at the moment? I am using http actions with hono. Getting this error: "Not implemented: get signal for Request. Consider calling an action defined in Node.js instead (https://docs.convex.dev/functions/actions)." ```typescript...

Why calling an action from a client is an anti-pattern?

When then is good to use an action from client? If we need to write a mutation based on the response of a third party API, that's probably the unique case when we can call the action directly from the client? Context: A note in the docs ...

External Data Import to Convex with Dagster

I'm encountering issues when using the Convex Streaming Import API (/api/streaming_import/import_airbyte_records) to import data with relationships. I'm using Dagster to orchestrate the process, and I'm not using Airbyte directly. Specifically, I am trying to upsert records into four tables, tools, articleTools, materials, and articleMaterials tables with one json file. 1. Initial Setup:...

Is there a way to wait for what an internalAction returns?

I have a mutation that updates user data this mutation calls an internal action to update the user data in Clerk too. This action can fail sometimes, for example if an email doesnt meet all requirements. In this case we would need to catch the error in the action give it back to the mutation and then give it back to the client. How can I do that?

How to retrieve remaining rate limits from Convex's rateLimiter?

Hi! I'm trying to figure out how to get the remaining number of requests allowed with the rateLimiter component. When I use the rateLimiter.limit call, it only tells me whether the limit is OK (ok/retryAfter), but it doesn’t provide how many requests are left. I noticed that the rateLimiter component has a rateLimits table, which seems to contain the rate limit data. However, when I try to use a query to read this table, I can only access the data from the app component and not the rateLimiter component....

Query by array

How can I query and fetch all users given an array of walletAddresses? I have users table and each user has an optional walletAddress field. I need to fetch all users (at once) given the walletAddresses array...