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

util/convex is not exported by package "langchain"

I have this error. I use tutorial for some llm staff. i need create in folder convex - folder langchain and write this code
export * from "langchain/util/convex";
export * from "langchain/util/convex";
but i have problem - Cannot find module 'langchain/util/convex' or its corresponding type declarations.ts(2307)...

`schemaValidation: false` for some parts of the schema

Hi, we love having schemaValidation turned on for most of our tables and parts of our documents. However, we have several documents that have different properties based on a type field, and ideally we'd still like to have nice type inference during development, without being strictly limited to storing foreign properties in a document. A helpful example might be to think about how Notion lets you convert between blocks that have different properties, but if you go from todo to heading and back to todo it still remembers the properties of the original todo block. Does that make sense?...

Convex Ents documentation: code comment // You can now use ctx.table as well:

In this messages.ts code example https://labs.convex.dev/convex-ents/setup/existing#setup-custom-functions There is a code comment that says // You can now use ctx.table as well:...

Convex Auth: Invalid key provided to SecureStore

Hi, I am facing a bug while using the otherwise great new Convex Auth library. I have followed the setup instructions in https://labs.convex.dev/auth/setup#add-authentication-tables-to-your-schema for my React Native app, and while the signUp flow seems to work (a user document gets created in my database), I get the following error regarding the SecureStore in my frontend: ``` Error: Invalid key provided to SecureStore. Keys must not be empty and contain only alphanumeric characters, ".", "-" and "_"....

schema failed to update in dashboard

I am currently working on a NextJs with Convex project, but i am having issues updating the schema of already added documents to my database, who can help to fix this please as i have been trying without being able to. I will really appreciate any help... i keep getting the following error: $ npx convex dev (node:25832) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created)...

useQuery single request

I have a query and I have multiple tables that affect it. What I want is to throw the query once and use it on the client. I can send a request as an http end but what I want is an internal solution. For example...

Importing Static Content

Hey gang, my app has some fixed sets of entities (category types, feature flags etc) and static content (just text with an ID). I have build scripts that collect everything and spit out JSON that I've been importing into tables via CLI. For prod though the CLI isn't available, so the options seem to be clearing the table and manually importing JSON in the control panel? Or is there a better way to implement this? Totally fine if this is a manual step rather than part of CI/CD, and I don't need t...

middleware

Hello, I’ve read the articles on middleware and setting them up with customQuery helper functions. I still have a hard time understanding what the proper way to include 3rd party libs before/after a mutation would be. 1. Before: I know we can just make an action that in turn calls the mutation, but the docs highlight that as an anti pattern so I’m wondering if there’s any gotchas that make this the case. 2. After: scheduling an action with a runAfter(0,…) towards the end of your transaction in the mutation. Are these the right approaches?...

Issue trying to import csv via Airbyte

Hi, I'm trying to import a csv into a Convex table via the Airbyte integration. I've successfully set up convex as a destination and I've tried to import the csv by using a Google sheet as an Airbyte source for the csv and also by using the File (CSV, JSON, Excel, Feather, Parquet) v0.5.3 Airbyte source (using a private AWS bucket). ...

How to get Clerk user current selected Organisation

Hello, I would like to be able to know which organisation the user belong to without having to pass it in the query. Two problem: - I added it to the clerk jwt, however in the getIndentity i do not have access to it. - If I do this, how can I invalidate data for the client-side that changed organization ?...

Realtime game with convex...?

So for the last few days ive been using socket.io (in rust) to build a simple 2d realtime game in react. I didnt want to use raw ws api but I also wanted control over how my data is sent. But then it made me think, could I use convex as a point of truth for my game since all clients can connect to the same query and mutate data? In my rust backend server I have the server create a room id, and spawn threads for players for each room. However in convex I could just have tables and when a game is created just add the userId to an active_game table or something. But another problem I thought about is player movements. The only way to make things seem realtime is to have updates to all player actions brodcasted to other players as well. This feels very expensive as players can trigger thoughsands of mutations per minute when playing the game... Maybe I could get away with coding a complex backend myself If I self host convex? Anyways, I really just want the community's opinion on this idea. Convex is great as a database and its selling point is realtime connections. If I was building a chess clone, this would be easier but I want a realtime game were players can move and control there 2d character and other players connected to the same game can see there movements. Which might be were my limitation is reached with convex... Either way, If I dont use convex as my core backend and write my own..I will still use convex for authenication and other site features later on for the game....

Self-hosting convex on domain with cloudflare

I'm running the convex open source backend, which works great locally. I wanted to expose it through a cloudflare tunnel on my custom domain name so I could access it from other devices, but when I expose port 3210 (which is what I saw being used in the just file) through a cloudflare tunnel to my domain at convex.---.com, and then replace the --url param with the new url, it doesn't work. I see the following error from the just convex dev command (replaced my domain with ---) ``` ✖ Error: Unable to run schema validation on http://convex.---.com...

Filtering by nested field on Convex dashboard

Wondering if there's a roadmap for this?

punny code

(node:4970) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) does everyone get this warning...

Deploy individual functions

I'm wondering if it's possible to do npx convex deploy --only functionName provided that the function works with the already deployed schema

Uncaught Error: Provider password is not configured

I'm getting this error when trying to sign up with the password provider via convex.

zod return validator in convex-helpers?

Are there any plans to add return validator in convex-helpers/server/zod?

Convex Auth Magic Link with Resend: Uncaught Error: Uncaught Error: Index users.email not found.

I'm trying to setup the new Convex Auth in with Magic Link my Nextjs app. I'm following the official tutorial and the demo app. When I call signIn("resend", formData), I'm getting the error: ```bash error Error: [CONVEX A(auth:signIn)] [Request ID: 09412de9cb7c47e3] Server Error Uncaught Error: Uncaught Error: Index users.email not found. at uniqueUserWithVerifiedEmail (../../../../node_modules/@convex-dev/auth/dist/server/implementation.js:881:43)...

Convex Auth... Authenticated works but auth.getUserId(ctx) returns null

Hi! Quick question (hopefully) my auth cycle is working, i can use ``` <Unauthenticated> ... </Unauthenticated>...

Convex Auth Apple

got github and google working in dev in prod. make sure using at least @convex-dev/auth@0.0.39 Now trying to get Apple working. It's super confusing, but with the help of this article https://medium.com/identity-beyond-borders/how-to-configure-sign-in-with-apple-77c61e336003, I believe I know have the right AUTH_APPLE_ID (client_id) and AUTH_APPLE_SECRET (client_secret) Now I get the following error...
No description