Convex Community

CC

Convex Community

Join the community to ask questions about Convex Community and get answers from other members.

Join

support-community

show-and-tell

general

self-hosted

announcements

Convex pricing model

Question as i'm putting my head around how convex works, so if i understand this correctly, we are charged for function calls essentially not per row/document read, as well as storage. if that is the case, if we were to run a transactions to update a record say lead and create an audit trail record, would that be completed in 1 function or is that considered 2?...

Using Convex to expose an HTTP API

hey, so we are going to go 100% convex for a new service. We do not need a client exposed api yet, but we will in the future. one of the ideas we'd like to see is autogenerated docs "openapi" and validation for api endpoints if we use convex to host our rest api. if hosting the rest api, we would like the ability to add things like rate limits, etc. to prevent bad actors....

is there a way to preload data in a

is there a way to preload data in a query from another related query? for example, say i have a list page that queries items.list. i click on an item which goes to a detail route and queries items.get(itemId). some/all of the item data is already in the list query. can i utilize that to avoid loading data we already have and provide instant results?

Have you had a chance to explore `better

Have you had a chance to explore better-auth yet? I'm using this adapter @better-auth-kit/convex and its instructions (https://www.better-auth-kit.com/docs/adapters/convex, https://github.com/ping-maxwell/better-auth-kit/tree/main/packages/adapters/convex) and these instructions too https://www.better-auth.com/docs/installation...

seeding a project

What would be the best way to seed a project? Currently running against read and write limits. I want to 1) purge an entire table, then 2) insert a lot rows. Is there anything better than 1) paginate to get all _ids and remove and for 2) create internal mutations for batches?

sending a bill on purchase

Do you guys know if I purchase convex, will they send a bill to my address?

Custom domain

I don't want it to be a convex domain name here, is it possible to change it
No description

Streaming more than text

Working with the get-convex persistent-text-streaming has been great, would appreciate some advice on handling non-text chunk appending. https://github.com/get-convex/persistent-text-streaming/blob/6c14033c16871f71fb27457c59ab1c227444999b/src/react/index.ts#L10C1-L12C2 Currently it's very straightforward to add basic chat via this component, however, when considering streaming the current state of generation for things like tool calls (eg. web browsing) it's not as clear how to handle. Are there plans to include more robust support different types of objects that could be streamed to the client, rather than just text? Or is there recommended way to handle this with the current component?...

Not authenticated

[CONVEX M(reports:uploadReport)] [Request ID: 9689ac8653abb809] Server Error Uncaught Error: Not authenticated at handler (../convex/reports.ts:32:4) identity is coming out to be null, even though the convex token contains everything, userid, orgid etc?...
No description

zod issue

Hello, this is really nice however we are getting this error when we need to return an array : ```ts export const getAll = zodQuery({ returns: z.array(z.object(situationFields)),...

Anyone know a good npm library for

Anyone know a good npm library for cropping images in Convex action functions? keep running into errors with the usual suspects (sharp lib)

Remix support

Is there much support for remix? Loading data on server side and such? Just wondering whether I should go with Next.js or Remix. Wanted to try out Convex for the first time...

yep most likely it is, there is no way

yep most likely it is, there is no way to throw an exception then?

i dont understand why Date.now() is

i dont understand why Date.now() is causing error in one internal query but not in another

Convex Storage and Cost

Do you think I will be banned from this server because of my recent article on Dev.to about Convex Storage? I tried to be honest, and there is nothing wrong with Convex' pricing, it was just not the right fit (entirely) for my project. šŸ˜¦ https://dev.to/kisszoltan/how-i-cut-my-mvps-operation-costs-by-76-and-why-you-shouldnt-do-that-1df9

Hi All,

Hi All, I would appreciate help on best practices how to do a paginate & join query or a preferred way to query efficiently, avoid unnecessary filtering and calls to loadMore on the frontend. I'm trying not to use collect() even when querying with indexes since I want to stuff to continue to scale. I'm not tied to this design but I have 3 tables where...

On my big mutations that might do 3

On my big mutations that might do 3 changes to one record, why does the dashboard appear to show the individual updates, is that just more of a rendering thing?

Anyone face this bug when trying to push

Anyone face this bug when trying to push changes to convex āœ– Error: Unable to push deployment config to https://giddy-hyena-745.convex.cloud āœ– Error fetching POST https://giddy-hyena-745.convex.cloud/api/push_config 400 Bad Request: Error: Hit an error while pushing:...

Zod with TypeScript for Server-side Vali...

In the latest convex-helpers you can now use the zod helpers to specify a returns on zCustom* functions that will also do Convex validation, and thereby generate types when you generate the API. You can now generate Convex validators from zod validators both to generate a Convex validator that matches the input to the zod validator, as well as one that matches the output of the zod validator. The former is useful for generating a Convex schema if you run zod validation after reading from the database, the latter is useful for generating a Convex schema based on a Zod validator that you run before you insert into the database. I updated the Stack post to match....

499 errors

Anyone having time out issues or is it just me? I have a connection with Anthropic that was working fine the past 3 months, now I get 499 error.
Next