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

Replicating data out of Convex

Hello, is it possible to connect api to convex and replicate it? What is the best way to do it?

Dates in schema

in the convex schema how do we define date record

Expo + Convex

How stable is Convex+Expo? https://docs.convex.dev/quickstart/react-native Is it production ready?...

Helpers bundling

I have a helpers.ts file where I store some plain helper functions which I import and use throughout my Convex functions.
export async function myHelperFunction()
export async function myHelperFunction()
...

here's another example schema flowchart

here's another example schema flowchart! from one of my projects
No description

Ah gotcha. I can see this being a good

Ah gotcha. I can see this being a good walk thorough idea. Maybe something @Tom Redman or @ian can explore putting together.

Hey Convex! Is more query options coming

Hey Convex! Is more query options coming to vector search anytime soon? I've been trying to figure out a good way to do a vector search on a composite key, but it seems like the vector query builder only supports eq and or so it doesn't seem like it's currently possible to filter by fieldA and fieldB. Am I missing something obvious?

Hi everyone, two questions:

Hi everyone, two questions: * let’s consider I want to have things in my DB that aren't dynamically updated as soon as it changes in the DB, is there a "static" getter? * I see a preloadQuery for Next.js but can't find something similar for Svelte. Is there an alternative? I want to be able to prefetch server-side as I'm using SvelteKit...

hi, I created a Convex project and

hi, I created a Convex project and later on a teammate joined me. I added him to my Convex Team and now he has access to the project. The problem is that when I shared the app code to him, also the .env.local file got copied, so from what I understand now he has access to my dev deploy instance. How can he create his dev deployment instance? This is what he sees from his Convex account on the dashboard...
No description

Eliminating redundant auth checks

hi, I'm repeating this piece of code in basically every convex function to check if the user is logged in (first check before any other check for authorizations). is this best practice? (I'm using Clerk) ```javascript...

Hello , i get this error when i try

Hello , i get this error when i try useMutation in my next js app
No description

Why is the useQuery from "convex-helpers/react" named the same

I just added a long-requested helper: a useQuery that matches the TanStack Query return type: ```ts import { useQuery } from "convex-helpers/react"; const { status, data, error } = useQuery(api.foo.bar, args);...

Organization patterns for convex folder

Anyone have recommendations for organizing the convex folder? Do you just do one file for each table? A folder for each table with separate files for mutations, queries, and actions? Started playing around with the second but things got redundant when it came to api vs. internal calls.

Angular

does convex work in angular?

Support

guys can i put some long queries here sorry if it disturbed you guys am new to convex its image upload related in chat

Filtering out results

Hello. I have a query filtering structure that I want to ask about. ``` const likedProducts = await ctx.db .query("productLikes") .withIndex("userId", (q) => q.eq("userId", ctx.user._id))...

import & export improvements

Suggestion about Database Import & Export. If I understood correctly from the documentation, at the moment you can only export the entire schema. It could be nice to have a utility like Data Pump from Oracle. It gives you the ability to export certain tables, with data or just metadata (not sure how useful this part might be). Also, you can specify certain queries: for example, if I only want to export some of the data and not all I can do that. Another cool feature is that it allows you to impo...

Doc<'tablename'>

so i tried to do the Doc<'tablename'> directly in the query handler , 'Doc' only refers to a type, but is being used as a value here. why do you think is that?

undo clear table

Asking this question for a friend 🙂 If I clear the wrong the table, is there an undo capability, even if temporarily?...

schema visualization

hi, is there any service to generate a nice visual schema representation of the schema.ts?