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

Hey quick question about optional types

Hey, quick question about optional types. I was able to come up with a way to easily define if a type could be missing. My questions are: 1. is there a more elegant way to do so and 2. is there a way to enforce these types on the convex dashboard. In my understanding, the local schema.ts doesn't get applied on the dashboard, but instead the dashboard allows any data to be inserted....
No description

Meaning of max document size

"The maximum record size is 1 MB. " Does this mean 1 document/all of the data in 1 row?

Question regarding passing data from

Question regarding passing data from frontend to convex

Potentially a dumb question about which

Potentially a dumb question about which type of "query" is the most performant in Convex

I m having trouble with setauth

I'm having trouble with setauth

server-side types

Hey everyone! Loving the way convex functions work, and the various lambda easter eggs (also hi again James, Sujay and Presley! ) I'm trying to figure out how to configure type inference on server side usage of convex. Client side type inference works flawlessly in .tsx files using Next.js, but on server (meaning nextjs api) I'm getting "any" as the inferred type. Is there any info on how to set up type inference and thus also auto-completion to work when using ConvexHttpClient ?...
No description

Windowed Infinite Scroll

I was curious to know whether anyone has thoughts on “windowed” pagination—I’m not sure what people call this, but I’ll explain what I mean. In most implementations of “infinite scroll” that I’ve seen, new items are loaded and appended to the end of a list indefinitely, but old items are never removed. This means that scrolling is not actually “infinite” in the sense that eventually, you load too many items onto the DOM and your page gets slow! I would like the ability to “unload” items at the beginning of the list once the list reaches a certain limit, and then to reload those things if a user scrolls back up (or in the opposite direction)....

prod app connection issues

Having a weird situation where all of the code is working on the dev instance of our convex app on localhost, but when uploading to prod (and prodURL is correctly set) to a live server, nothing executes. How can we troubleshoot?

Hey guys Does anyone know the list of

Hey guys. Does anyone know the list of polyfills to get convex working in React Native?

Upon running npx convex dev I get the

Upon running npx convex dev, I get the following error ⠋ Checking for changed table indexes...Network error connecting to dev deployment: unable to get local issuer certificate Couldn't find any solutions in the docs. Has anyone experienced this?...

Throttling Requests by Single-Flighting

I put together a blog post on best practices for throttling mutations for things like typing. @RJ I thought of your collaborative text editor. Hopefully this is helpful for anyone doing fast updates! https://blog.convex.dev/throttling-requests-by-single-flighting/

Vue client

I'm looking at making a Vue client. Are there any examples of using ConvexHttpClient to subscribe to updates on a query?

Populating Convex data from Node.js

Hi guys I just started using convex and want to test out its potential for a large web app, if I want to populate my convex database from react api calls, there are almost 100k records but after some inserts the convex backend breaks showing this error : Network error connecting to dev deployment: read ECONNRESET If there is a way to build api calls service like node in convex or just the backend contains queries, subsscriptions, etc.?...

Is it anti pattern to use the useQuery

Is it anti-pattern to use the useQuery hook inside a useEffect hook ?

faking an engine without timers

@Night fast5 ( https://fast5.live ) had a similar need

Hi yall Loving Convex so far

Hi yall, Loving Convex so far. I came across a problem. Even after running npx convex codegen, the dataModel.d.ts looks like the following /** * The type of a document stored in Convex. */...

API key

Minor nit: this API key should probably be cleaned up from the docs
No description

Tell if mutations are pending

Is there a way to tell if mutations are pending? I noticed the Convex browser client seems to register a beforeunload handler to warn the user if there are mutations pending, and it'd be really cool if I could show an indicator in my UI as well

Helper Functions

can we run queries within queries? there's some logic that we want to share between two different queries, but we're not sure what the best way to go about this is. basically we have an admin table, and before all the admin operations that require admin privileges, we want to query the admin table and check that the user is there. we would like to put this into one method we could call from all the "privileged" operations. how should we do this?

GenericId vs. Id

hi! what's the difference between Id and GenericId and how do I know which one to use? thanks!!